-
Notifications
You must be signed in to change notification settings - Fork 70
37 lines (30 loc) · 1.13 KB
/
deploy-on-sdk-update.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
name: Deploy on sdk update
on:
repository_dispatch:
types: [jit-sdk-update]
jobs:
update-sdk:
runs-on: ubicloud
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: "20.18.x"
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: yarn install
- name: Add specific version of sdk
run: yarn add @drift-labs/sdk@${{ github.event.client_payload.sdk-version }}
- name: Add specific version of jit sdk
run: yarn add @drift-labs/jit-proxy@${{ github.event.client_payload.jit-version }}
- name: Build after new dependency
run: yarn run build
- name: Commit and push changes
run: |
git config user.name "GitHub Actions"
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git add -A
git commit --allow-empty -m "Bumping sdk and jit dependencies to ${{ github.event.client_payload.sdk-version }} and ${{ github.event.client_payload.jit-version }}"
git push