Publish NPM Package #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish NPM Package | |
on: | |
workflow_dispatch: | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22.x | |
registry-url: 'https://registry.npmjs.org' | |
- run: npm ci | |
- name: Build package | |
run: npm run lib | |
- name: Publish package | |
env: | |
NODE_AUTH_TOKEN: '${{ secrets.NPM_PUBLISH_TOKEN }}' | |
run: npm publish |