Skip to content

Release

Release #14

Workflow file for this run

name: Release
on:
release:
types:
- published
permissions:
contents: read
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