File tree 1 file changed +8
-13
lines changed
1 file changed +8
-13
lines changed Original file line number Diff line number Diff line change 8
8
types : [created]
9
9
10
10
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 test
20
-
21
11
publish-gpr :
22
- needs : build
23
12
runs-on : ubuntu-latest
24
13
permissions :
25
14
contents : read
@@ -28,18 +17,24 @@ jobs:
28
17
- uses : actions/checkout@v2
29
18
- uses : actions/setup-node@v2
30
19
with :
31
- node-version : 16
20
+ node-version : 14
32
21
registry-url : https://npm.pkg.github.com/
33
22
- run : npm ci
34
23
- run : npm publish
35
24
env :
36
25
NODE_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
26
+
27
+ publish-yarn :
28
+ runs-on : ubuntu-latest
29
+ permissions :
30
+ contents : read
31
+ packages : write
32
+ steps :
37
33
- uses : actions/checkout@v2
38
34
- uses : actions/setup-node@v2
39
35
with :
40
36
node-version : ' 14.x'
41
37
registry-url : ' https://registry.npmjs.org'
42
- # Defaults to the user or organization that owns the workflow file
43
38
scope : ' @modifiedcommand'
44
39
- run : yarn
45
40
- run : yarn publish
You can’t perform that action at this time.
0 commit comments