Skip to content

v2.1.4

v2.1.4 #16

Workflow file for this run

# This workflow will publish the package to NPM when a release is released
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: publish
on:
release:
types: [released]
workflow_dispatch:
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- name: Build and publish
run: |
npm install
npm run build
npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}