Node.js Package #415
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: Node.js Package | ||
on: | ||
workflow_dispatch: | ||
jobs: | ||
publish-npm: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20' | ||
registry-url: 'https://registry.npmjs.org' | ||
- run: npm login | ||
with: | ||
Check failure on line 19 in .github/workflows/npm-publish.yml
|
||
registry-url: 'https://registry.npmjs.org' | ||
- run: npm publish --provenance --access public | ||
env: | ||
with: | ||
registry-url: 'https://registry.npmjs.org' | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |