Skip to content

v0.2.0

v0.2.0 #7

Workflow file for this run

name: Publish to npm
on:
release:
types: [created]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm test
publish-npm:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm ci
# Set version from the release tag (e.g. v0.2.0 → 0.2.0)
- run: npm version ${GITHUB_REF_NAME#v} --no-git-tag-version --allow-same-version
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}