Skip to content

1.0.1

1.0.1 #4

Workflow file for this run

name: Publish to npm
on:
release:
types: [created]
permissions:
contents: read
jobs:
publish-npm:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@4.2.2
- name: Setup Node
uses: actions/setup-node@4.3.0
with:
node-version: 22
registry-url: https://registry.npmjs.org/
cache: npm
- run: npm ci
- run: npm test
- run: |
echo "Publishing $TAG_NAME"
npm version ${TAG_NAME} --git-tag-version=false
env:
TAG_NAME: ${{github.event.release.tag_name}}
- run: npm whoami; npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}