Skip to content

Instantly share code, notes, and snippets.

@shinokada
Created October 12, 2022 21:19
Show Gist options
  • Save shinokada/26ce5fd971186d1177e96077ac8ef67f to your computer and use it in GitHub Desktop.
Save shinokada/26ce5fd971186d1177e96077ac8ef67f to your computer and use it in GitHub Desktop.
name: Publish NPM
on:
release:
types: [published]
jobs:
publish-npm:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment