-
Notifications
You must be signed in to change notification settings - Fork 16
41 lines (39 loc) · 1010 Bytes
/
deploy.yml
File metadata and controls
41 lines (39 loc) · 1010 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Typescript SDK Deploy Workflow
on:
workflow_dispatch:
inputs:
chooseDeploy:
description: 'Package to deploy'
required: true
default: ''
type: choice
options:
- fetch
- api
- core
- auth
- read
- write
- verify
jobs:
deploy-sdk-package-to-npm:
name: Typescript SDK Build and Deploy
runs-on: ubuntu-latest
steps:
- run: |
echo "Package to deploy: $PACKAGE_NAME"
env:
PACKAGE_NAME: ${{ inputs.chooseDeploy }}
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: npm
- name: Build / Tests
run: scripts/linux/psv/build_test_psv.sh && env
- name: Deploy to NPM
run: scripts/publish-packages.sh -${PACKAGE_NAME}
env:
PACKAGE_NAME: ${{ inputs.chooseDeploy }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}