Skip to content

Commit ed22818

Browse files
authored
Add deploy job to trigger manually (#508)
Job build and deploy to NPM with choosing package from list suggested. Relates-To: OLPEDGE-2770 Signed-off-by: Yaroslav Stefinko <ext-yaroslav.stefinko@here.com> Signed-off-by: Yaroslav Stefinko <ext-yaroslav.stefinko@here.com>
1 parent 179781a commit ed22818

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Typescript SDK Deploy Workflow
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
chooseDeploy:
7+
description: 'Package to deploy'
8+
required: true
9+
default: ''
10+
type: choice
11+
options:
12+
- fetch
13+
- api
14+
- core
15+
- auth
16+
- read
17+
- write
18+
- verify
19+
20+
jobs:
21+
deploy-sdk-package-to-npm:
22+
name: Typescript SDK Build and Deploy
23+
runs-on: ubuntu-latest
24+
steps:
25+
- run: |
26+
echo "Package to deploy: $PACKAGE_NAME"
27+
env:
28+
PACKAGE_NAME: ${{ inputs.chooseDeploy }}
29+
- uses: actions/checkout@v2
30+
- name: Use Node.js
31+
uses: actions/setup-node@v1
32+
with:
33+
node-version: '16'
34+
cache: npm
35+
- name: Build / Tests
36+
run: scripts/linux/psv/build_test_psv.sh && env
37+
- name: Deploy to NPM
38+
run: scripts/publish-packages.sh -${PACKAGE_NAME}

0 commit comments

Comments
 (0)