File tree 1 file changed +50
-0
lines changed
1 file changed +50
-0
lines changed 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 : 12
15
+ - uses : pnpm/action-setup@v1
16
+ with :
17
+ version : 4.11.1
18
+ - run : pnpm recursive test
19
+
20
+ publish-npm :
21
+ needs : build
22
+ runs-on : ubuntu-latest
23
+ steps :
24
+ - uses : actions/checkout@v2
25
+ - uses : actions/setup-node@v1
26
+ with :
27
+ node-version : 12
28
+ registry-url : https://registry.npmjs.org/
29
+ - uses : pnpm/action-setup@v1
30
+ with :
31
+ version : 4.11.1
32
+ - run : pnpm recursive publish
33
+ env :
34
+ NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
35
+
36
+ publish-gpr :
37
+ needs : build
38
+ runs-on : ubuntu-latest
39
+ steps :
40
+ - uses : actions/checkout@v2
41
+ - uses : actions/setup-node@v1
42
+ with :
43
+ node-version : 12
44
+ registry-url : https://npm.pkg.github.com/
45
+ - uses : pnpm/action-setup@v1
46
+ with :
47
+ version : 4.11.1
48
+ - run : pnpm recursive publish
49
+ env :
50
+ NODE_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
You can’t perform that action at this time.
0 commit comments