File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 99 commit_sha :
1010 description : ' The full commit id to build'
1111 required : true
12+ package_url :
13+ description : ' Staging package url'
14+ required : false
1215
1316jobs :
1417 comment-run :
2326 env :
2427 BROWSERSTACK_USERNAME : ${{ secrets.BROWSERSTACK_USERNAME }}
2528 BROWSERSTACK_ACCESS_KEY : ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
29+ PACKAGE_URL : ${{ github.event.inputs.package_url }}
2630
2731 steps :
2832 - uses : actions/checkout@v3
@@ -47,11 +51,24 @@ jobs:
4751 if (result.status !== 201) {
4852 console.log('Failed to create check run')
4953 }
54+
5055 - name : Setup node
5156 uses : actions/setup-node@v3
5257 with :
5358 node-version : ${{ matrix.node }}
5459
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 dummy@gmail.com -r http://localhost:4873
69+ npm publish staging_package.tgz --registry http://localhost:4873/
70+ shell : bash
71+
5572 - name : Install dependencies
5673 run : npm install
5774
You can’t perform that action at this time.
0 commit comments