File tree 1 file changed +17
-0
lines changed
1 file changed +17
-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 :
23
26
env :
24
27
BROWSERSTACK_USERNAME : ${{ secrets.BROWSERSTACK_USERNAME }}
25
28
BROWSERSTACK_ACCESS_KEY : ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
29
+ PACKAGE_URL : ${{ github.event.inputs.package_url }}
26
30
27
31
steps :
28
32
- uses : actions/checkout@v3
@@ -47,11 +51,24 @@ jobs:
47
51
if (result.status !== 201) {
48
52
console.log('Failed to create check run')
49
53
}
54
+
50
55
- name : Setup node
51
56
uses : actions/setup-node@v3
52
57
with :
53
58
node-version : ${{ matrix.node }}
54
59
60
+ - name : Setup staging npm package
61
+ if : ${{ github.event.inputs.package_url != '' }}
62
+ run : |
63
+ echo 'Publishing tar.gz to local registry'
64
+ curl -o staging_package.tgz "$PACKAGE_URL"
65
+ npm install verdaccio -g
66
+ verdaccio &
67
+ npm config set registry http://localhost:4873
68
+ npm install -g npm-cli-adduser && npm-cli-adduser -u dummy -p dummy -e [email protected] -r http://localhost:4873
69
+ npm publish staging_package.tgz --registry http://localhost:4873/
70
+ shell : bash
71
+
55
72
- name : Install dependencies
56
73
run : npm install
57
74
You can’t perform that action at this time.
0 commit comments