Skip to content

Commit 28dcbe9

Browse files
committed
Fix publish workflow (again)
1 parent a6e38f7 commit 28dcbe9

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

.github/workflows/npm-publish.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,19 @@ on:
88
types: [created]
99

1010
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-node@v2
16+
with:
17+
node-version: 16
18+
- run: npm ci
19+
- run: npm run build
20+
- run: npm test
21+
1122
publish-npm:
23+
needs: build
1224
runs-on: ubuntu-latest
1325
steps:
1426
- uses: actions/checkout@v2
@@ -19,9 +31,10 @@ jobs:
1931
- run: npm ci
2032
- run: npm publish
2133
env:
22-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
34+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
2335

2436
publish-gpr:
37+
needs: build
2538
runs-on: ubuntu-latest
2639
permissions:
2740
contents: read

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mlg-converter",
3-
"version": "0.5.0",
3+
"version": "0.5.1",
44
"license": "MIT",
55
"description": "MLG log files converter",
66
"author": "Piotr Rogowski <piotr.rogowski0@gmail.com>",

0 commit comments

Comments
 (0)