File tree 2 files changed +31
-18
lines changed
2 files changed +31
-18
lines changed Original file line number Diff line number Diff line change 1
- # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2
- # For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3
-
4
1
name : Test
5
2
6
3
on : push
14
11
with :
15
12
node-version : 14
16
13
- run : npm i
17
- - run : npm test
18
-
19
- # publish-gpr:
20
- # needs: build
21
- # runs-on: ubuntu-latest
22
- # steps:
23
- # - uses: actions/checkout@v2
24
- # - uses: actions/setup-node@v2
25
- # with:
26
- # node-version: 14
27
- # registry-url: https://npm.pkg.github.com/
28
- # - run: npm ci
29
- # - run: npm publish
30
- # env:
31
- # NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
14
+ - run : npm test
Original file line number Diff line number Diff line change
1
+ name : Node.js Package
2
+
3
+ on :
4
+ release :
5
+ types : [created]
6
+
7
+ jobs :
8
+ build :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v2
12
+ - uses : actions/setup-node@v1
13
+ with :
14
+ node-version : 14
15
+ - run : npm ci
16
+ - run : npm test
17
+
18
+ publish-gpr :
19
+ needs : build
20
+ runs-on : ubuntu-latest
21
+ steps :
22
+ - uses : actions/checkout@v2
23
+ - uses : actions/setup-node@v1
24
+ with :
25
+ node-version : 14
26
+ registry-url : https://npm.pkg.github.com/
27
+ - run : npm ci
28
+ - run : npm publish
29
+ env :
30
+ NODE_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
You can’t perform that action at this time.
0 commit comments