Skip to content

Commit d6e1fc5

Browse files
bartvenemanBart Veneman
andauthored
Fix NPM publishing Action (#194)
Co-authored-by: Bart Veneman <bart.veneman@drukwerkdeal.nl>
1 parent 0d26b04 commit d6e1fc5

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,18 @@
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
33

44
name: Node.js Package
5-
65
on:
76
release:
87
types: [created]
9-
108
jobs:
119
build:
1210
runs-on: ubuntu-latest
1311
steps:
1412
- uses: actions/checkout@v2
13+
# Setup .npmrc file to publish to npm
1514
- uses: actions/setup-node@v1
1615
with:
17-
node-version: 12
18-
- run: npm ci
19-
- run: npm test
20-
21-
publish-npm:
22-
needs: build
23-
runs-on: ubuntu-latest
24-
steps:
25-
- uses: actions/checkout@v2
26-
- uses: actions/setup-node@v1
27-
with:
28-
node-version: 12
16+
node-version: '12.x'
2917
registry-url: https://registry.npmjs.org/
3018
- run: npm ci
3119
- run: npm publish

0 commit comments

Comments
 (0)