File tree 1 file changed +17
-1
lines changed
1 file changed +17
-1
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 :
@@ -17,12 +20,13 @@ jobs:
17
20
fail-fast : false
18
21
max-parallel : 3
19
22
matrix :
20
- node : ['14', '16', '18']
23
+ node : ['14', '16', '18', '20' ]
21
24
os : [ macos-latest, windows-latest, ubuntu-latest ]
22
25
name : NodeJS Playwright Repo ${{ matrix.node }} - ${{ matrix.os }} Sample
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
52
56
with :
53
57
node-version : ${{ matrix.node }}
54
58
59
+ - name : Setup staging npm package
60
+ if : ${{ github.event.inputs.package_url != '' }}
61
+ run : |
62
+ echo 'Publishing tar.gz to local registry'
63
+ curl -o staging_package.tgz "$PACKAGE_URL"
64
+ npm install verdaccio -g
65
+ verdaccio &
66
+ npm config set registry http://localhost:4873
67
+ npm install -g npm-cli-adduser && npm-cli-adduser -u dummy -p dummy -e dummy@gmail.com -r http://localhost:4873
68
+ npm publish staging_package.tgz --registry http://localhost:4873/
69
+ shell : bash
70
+
55
71
- name : Install dependencies
56
72
run : npm install
57
73
You can’t perform that action at this time.
0 commit comments