File tree Expand file tree Collapse file tree 1 file changed +1
-29
lines changed Expand file tree Collapse file tree 1 file changed +1
-29
lines changed Original file line number Diff line number Diff line change @@ -3,14 +3,8 @@ name: Publish
3
3
on :
4
4
release :
5
5
types : [created]
6
- workflow_dispatch :
7
- inputs :
8
- version :
9
- description : ' Version to publish'
10
- required : true
11
6
12
7
jobs :
13
-
14
8
publish-npm :
15
9
runs-on : ubuntu-latest
16
10
steps :
24
18
- run : npm test
25
19
- run : npm version ${TAG_NAME} --git-tag-version=false
26
20
env :
27
- TAG_NAME : ${{ github.event.inputs.version || github.event. release.tag_name }}
21
+ TAG_NAME : ${{ github.event.release.tag_name }}
28
22
- run : npm whoami; npm --ignore-scripts publish
29
23
env :
30
24
NODE_AUTH_TOKEN : ${{secrets.npm_token}}
31
-
32
- publish-gpr :
33
- runs-on : ubuntu-latest
34
- steps :
35
- - uses : actions/checkout@v2
36
- - uses : actions/setup-node@v2
37
- with :
38
- node-version : 14
39
- registry-url : https://registry.npmjs.org/
40
- - run : npm ci
41
- - run : npm run build --if-present
42
- - run : npm test
43
- - run : npm version ${TAG_NAME} --git-tag-version=false
44
- env :
45
- TAG_NAME : ${{ github.event.inputs.version || github.event.release.tag_name }}
46
- - uses : actions/setup-node@v2
47
- with :
48
- node-version : 14
49
- registry-url : https://npm.pkg.github.com/
50
- - run : npm --ignore-scripts publish
51
- env :
52
- NODE_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
You can’t perform that action at this time.
0 commit comments