0.9.0 #15
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| release: | |
| types: | |
| - published | |
| permissions: | |
| contents: read | |
| id-token: write # Required for OIDC token used by npm trusted publishers | |
| jobs: | |
| release: | |
| if: ${{ github.repository_owner == 'cloudflare' }} | |
| name: Publishing to npmjs registry | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checking out | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Use Node.js 24 | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| # registry-url is required to correctly setup authentication per https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages#publishing-packages-to-the-npm-registry | |
| registry-url: 'https://registry.npmjs.org' | |
| cache: 'npm' | |
| - name: Install NPM dependencies | |
| run: npm ci | |
| - name: Check build | |
| run: npm run build | |
| - name: Publish to npmjs | |
| run: npm publish |