Skip to content

Commit

Permalink
Add workflow to publish package
Browse files Browse the repository at this point in the history
  • Loading branch information
tsekityam committed Aug 7, 2021
1 parent 8dd72f7 commit 708ca51
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Node.js Package
on:
release:
types: [created]

workflow_dispatch:

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14.x
registry-url: https://registry.npmjs.org/
cache: yarn
- run: yarn
- run: yarn lint
- run: yarn build
- run: yarn test
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: "yarn"
cache: yarn
- run: yarn
- run: yarn lint
- run: yarn build
Expand Down

0 comments on commit 708ca51

Please sign in to comment.