Skip to content

v1.4.0

v1.4.0 #30

Workflow file for this run

name: Release
on:
release:
types:
- published
permissions:
id-token: write
contents: read
jobs:
npm:
name: Release on npm
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Derive version from release tag
run: echo "VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
- uses: actions/setup-node@v4
with:
node-version: 24
registry-url: https://registry.npmjs.org
- name: Set package version from tag
run: echo $(jq --arg v "${{ env.VERSION }}" '(.version) = $v' package.json) > package.json
- run: npm ci
- run: npm run build
- name: Publish release candidate
if: github.event.release.prerelease
run: npm publish --access public --tag=canary --provenance
- name: Publish
if: "!github.event.release.prerelease"
run: npm publish --access public --provenance