File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish Alpha
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - alpha
7
+
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v1
13
+ - uses : actions/setup-node@v1
14
+ with :
15
+ node-version : 12
16
+ - run : npm ci
17
+ - run : npm run lint
18
+ - run : npm test
19
+ - run : npm run build
20
+
21
+ publish-npm :
22
+ needs : build
23
+ runs-on : ubuntu-latest
24
+ steps :
25
+ - uses : actions/checkout@v1
26
+ - uses : actions/setup-node@v1
27
+ with :
28
+ node-version : 12
29
+ registry-url : https://registry.npmjs.org/
30
+ - run : npm ci
31
+ - run : npm publish
32
+ env :
33
+ NODE_AUTH_TOKEN : ${{secrets.npm_token}}
34
+
35
+ publish-gpr :
36
+ needs : build
37
+ runs-on : ubuntu-latest
38
+ steps :
39
+ - uses : actions/checkout@v1
40
+ - uses : actions/setup-node@v1
41
+ with :
42
+ node-version : 12
43
+ registry-url : https://npm.pkg.github.com/
44
+ scope : ' @jrtnq514'
45
+ - run : npm ci
46
+ - run : npm publish
47
+ env :
48
+ NODE_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
You can’t perform that action at this time.
0 commit comments