Skip to content

v1.0.1

v1.0.1 #1

Workflow file for this run

# This workflow will publish a package to NPM registry when a release is published
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: Publish to NPM on release
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository at the release tag
uses: actions/checkout@v4
with:
ref: ${{ github.event.release.tag_name }}
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- name: Publish the package to NPM
run: npm run publish:dist
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}