Skip to content

Commit

Permalink
fix the github publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
vcfvct committed Apr 25, 2021
1 parent 58ca3cc commit 623f1f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,6 @@ on:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build
- run: npm test

publish-npm:
needs: build
runs-on: ubuntu-latest
Expand All @@ -34,6 +20,9 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build
- run: npm test
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "typescript-retry-decorator",
"version": "2.0.0",
"version": "2.0.1",
"description": "A simple retry decorator for typescript with no dependency.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit 623f1f3

Please sign in to comment.