-
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (40 loc) · 1.22 KB
/
typings.yml
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
42
43
44
45
46
name: Deploy Client Package
on:
push:
branches: [main]
paths:
- "typings/**"
workflow_dispatch:
jobs:
package:
name: Publish Client Package
runs-on: ubuntu-latest
defaults:
run:
working-directory: typings
permissions:
packages: write
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Checkout submodules
shell: bash
run: |
git config --global url."https://github.com/".insteadOf "git@github.com:"
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
- name: Install Node v16
uses: actions/setup-node@v1
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: yarn install --immutable
- name: Build Client and Types
run: yarn suite
- name: Deploy to Github Package Registry
run: yarn npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}