Skip to content

Commit ef26cf3

Browse files
committed
add: staging npm package publish
1 parent 3673a15 commit ef26cf3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/reviewing_changes.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
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

1316
jobs:
1417
comment-run:
@@ -52,6 +55,17 @@ jobs:
5255
with:
5356
node-version: ${{ matrix.node }}
5457

58+
- name: Setup staging npm package
59+
if: ${{ github.event.inputs.package_url != '' }}
60+
run: |
61+
echo 'Publishing tar.gz to local registry'
62+
curl -o staging_package.tgz '${{ github.event.inputs.package_url }}'
63+
npm install verdaccio -g
64+
verdaccio &
65+
npm config set registry http://localhost:4873
66+
npm install -g npm-cli-adduser && npm-cli-adduser -u dummy -p dummy -e dummy@gmail.com -r http://localhost:4873
67+
npm publish staging_package.tgz --registry http://localhost:4873/
68+
5569
- name: Install dependencies
5670
run: npm install
5771

0 commit comments

Comments
 (0)