Skip to content

Commit 41d9fcc

Browse files
committed
add: staging npm package publish
1 parent 225db66 commit 41d9fcc

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/reviewing_changes.yml

Lines changed: 16 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:
@@ -47,6 +50,19 @@ jobs:
4750
if (result.status !== 201) {
4851
console.log('Failed to create check run')
4952
}
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+
5066
- name: Setup node
5167
uses: actions/setup-node@v3
5268
with:

0 commit comments

Comments
 (0)