Skip to content

v0.2.0

v0.2.0 #3

Workflow file for this run

name: Publish npm
on:
release:
types: [published]
permissions:
contents: read
id-token: write
jobs:
npm:
if: startsWith(github.event.release.tag_name, 'v')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
registry-url: "https://registry.npmjs.org"
- name: Publish npm package
working-directory: npm
run: |
VERSION="${{ github.event.release.tag_name }}"
VERSION="${VERSION#v}"
npm version "$VERSION" --no-git-tag-version
npm publish --provenance --access public