File tree Expand file tree Collapse file tree 1 file changed +13
-28
lines changed Expand file tree Collapse file tree 1 file changed +13
-28
lines changed Original file line number Diff line number Diff line change 10
10
jobs :
11
11
build :
12
12
runs-on : ubuntu-latest
13
+ permissions :
14
+ contents : read
15
+ packages : write
13
16
steps :
14
17
- uses : actions/checkout@v2
15
18
- uses : actions/setup-node@v2
@@ -25,34 +28,16 @@ jobs:
25
28
uses :
coverallsapp/[email protected]
26
29
with :
27
30
github-token : ${{ github.token }}
28
-
29
- publish-npm :
30
- needs : build
31
- runs-on : ubuntu-latest
32
- steps :
33
- - uses : actions/checkout@v2
34
- - uses : actions/setup-node@v2
35
- with :
36
- node-version : 14
37
- registry-url : https://registry.npmjs.org/
38
- - run : npm ci
39
- - run : npm publish
31
+ - name : Upload
32
+
40
33
env :
41
- NODE_AUTH_TOKEN : ${{secrets.npm_token}}
42
-
43
- publish-gpr :
44
- needs : build
45
- runs-on : ubuntu-latest
46
- permissions :
47
- contents : read
48
- packages : write
49
- steps :
50
- - uses : actions/checkout@v2
51
- - uses : actions/setup-node@v2
34
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
52
35
with :
53
- node-version : 14
54
- registry-url : https://npm.pkg.github.com/
55
- - run : npm ci
56
- - run : npm publish
36
+ upload_url : ${{ github.event.release.upload_url }}
37
+ asset_path : ./dist/release.zip
38
+ asset_name : release-${{ github.event.release.tag_name }}.zip
39
+ asset_content_type : application/zip
40
+ - name : NpmPublish
41
+ run : npm publish
57
42
env :
58
- NODE_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN }}
43
+ NODE_AUTH_TOKEN : ${{secrets.npm_token }}
You can’t perform that action at this time.
0 commit comments