Skip to content

npm Publish

npm Publish #32

name: npm Publish
on:
workflow_dispatch:
jobs:
npm-publish:
name: npm-publish
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 20.x
registry-url: "https://registry.npmjs.org"
- name: Publish
run: |
npm install --ignore-scripts
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}