File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -3,20 +3,29 @@ name: Publish Package to npmjs
3
3
on :
4
4
release :
5
5
types : [published]
6
- workflow_dispatch :
7
6
8
7
jobs :
9
8
publish :
10
9
runs-on : ubuntu-latest
10
+
11
11
steps :
12
12
- name : Checkout
13
- uses : actions/checkout@v2
13
+ uses : actions/checkout@v4
14
14
- uses : actions/setup-node@v4
15
15
with :
16
16
node-version-file : " .nvmrc"
17
17
- name : Download artifact
18
- uses : actions/download-artifact@v2
19
- with :
20
- name : libxmlwasm.tgz
21
- path : libxmlwasm.tgz
18
+ run : |
19
+ $runid=$(gh run list -w build.yml -s success -c $GITHUB_SHA --json databaseId -q ".[0].databaseId")
20
+ gh run download $runid -n libxmlwasm.tgz
21
+ - name : Unpack artifact
22
+ run : |
23
+ tar axf libxmlwasm.tgz
24
+ mv package/dist .
25
+ rm -rf package libxmlwasm.tgz
22
26
- run : ls . */
27
+
28
+ - name : Publish to npm
29
+ run : corepack yarn npm publish
30
+ env :
31
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments