Skip to content

Instantly share code, notes, and snippets.

@bilashcse
Created May 21, 2020 19:59
Show Gist options
  • Save bilashcse/595e9be6efbbc2fd217a537a3b3df56c to your computer and use it in GitHub Desktop.
Save bilashcse/595e9be6efbbc2fd217a537a3b3df56c to your computer and use it in GitHub Desktop.
publish-npm-package-github-action-flow
name: NPM package publish
on:
push:
branches:
- master
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: 10.10.0
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment