Skip to content

npm publish

npm publish #8

Workflow file for this run

name: npm publish
on:
release:
types: released
workflow_dispatch:
concurrency: ${{ github.workflow }}
jobs:
npm-publish:
runs-on: windows-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: npm
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}