Skip to content

Commit

Permalink
[Fix] Fixed npm publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
irshadjsr21 committed Apr 18, 2020
1 parent 2b1bd54 commit efd0f55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,7 @@ on:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 10
- run: npm ci
- run: npm test

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -28,6 +17,7 @@ jobs:
node-version: 10
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm test
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
test
docs
.esdoc.json
.esdoc.json
.github

0 comments on commit efd0f55

Please sign in to comment.