Skip to content

Commit

Permalink
Added publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
w8r committed Apr 21, 2021
1 parent 842da9d commit dc09809
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 21 deletions.
21 changes: 0 additions & 21 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,3 @@ jobs:
- run: npm ci
- run: npm run build --if-present
- run: npm test

on:
push:
tags:
- 'v*.*.*'

jobs:
publish:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm install
- run: npm test
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
20 changes: 20 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on:
push:
tags:
- 'v*.*.*'

jobs:
publish:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm install
- run: npm test
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}

0 comments on commit dc09809

Please sign in to comment.