Created
May 21, 2020 19:59
-
-
Save bilashcse/595e9be6efbbc2fd217a537a3b3df56c to your computer and use it in GitHub Desktop.
publish-npm-package-github-action-flow
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: 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