Skip to content

Commit

Permalink
Create npm_publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shiryel authored Jul 12, 2020
1 parent 7ffd7e4 commit 97020b4
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/npm_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish on NPM

on:
push:
paths:
- '.github/workflows/npm_publish.yml'
- 'package.json'

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 14
registry-url: https://registry.npmjs.org/

- name: Installing NPM deps
run: npm i

- name: Build
run: npm run build --production

- name: Publish on NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit 97020b4

Please sign in to comment.