File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 29
29
submodules : true
30
30
31
31
- name : Install node
32
- uses : actions/setup-node@v3
32
+ uses : actions/setup-node@v4
33
33
with :
34
34
registry-url : ' https://registry.npmjs.org'
35
35
scope : ' @zondax'
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ name: 'Publish packages'
3
3
on :
4
4
release :
5
5
types :
6
+ - created
6
7
- published
7
8
- edited
8
9
tags :
27
28
steps :
28
29
- name : Checkout
29
30
uses : actions/checkout@v4
31
+ with :
32
+ submodules : true
30
33
31
34
- name : Install node
32
- uses : actions/setup-node@v3
35
+ uses : actions/setup-node@v4
33
36
with :
34
37
registry-url : ' https://registry.npmjs.org'
35
38
scope : ' @zondax'
@@ -44,13 +47,18 @@ jobs:
44
47
id : get_version
45
48
uses : battila7/get-version-action@v2
46
49
50
+ - name : Show version
51
+ run : echo ${{ steps.get_version.outputs.version }}
52
+
47
53
- name : Update tag
48
54
run : |
49
- echo Publishing as ${{ steps.get_version.outputs.version }}
50
55
npm --allow-same-version --no-git-tag-version version ${{ steps.get_version.outputs.version }}
51
56
52
57
- name : Publish package
53
58
env :
54
59
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN_PUBLISH_AUTO }}
60
+ NODE_REPO_SERVER : ' https://registry.npmjs.org'
55
61
run : |
62
+ npm config set registry $NODE_REPO_SERVER
63
+ npm config set //registry.npmjs.org/:_authToken $NODE_AUTH_TOKEN
56
64
npm publish
You can’t perform that action at this time.
0 commit comments