File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 9
9
commit_sha :
10
10
description : ' The full commit id to build'
11
11
required : true
12
+ package_url :
13
+ description : ' Staging package url'
14
+ required : false
12
15
13
16
jobs :
14
17
comment-run :
47
50
if (result.status !== 201) {
48
51
console.log('Failed to create check run')
49
52
}
53
+
54
+ - name : Setup staging npm package
55
+ if : ${{ github.event.inputs.package_url != '' }}
56
+ run : |
57
+ echo 'Publishing tar.gz to local registry'
58
+ curl -o staging_package.tgz '${{ github.event.inputs.package_url }}'
59
+ npm install verdaccio -g
60
+ verdaccio &
61
+ npm config set registry http://localhost:4873
62
+ npm install -g npm-cli-adduser && npm-cli-adduser -u dummy -p dummy -e [email protected] -r http://localhost:4873
63
+ npm publish staging_package.tgz --registry http://localhost:4873/
64
+ shell : bash
65
+
50
66
- name : Setup node
51
67
uses : actions/setup-node@v3
52
68
with :
You can’t perform that action at this time.
0 commit comments