34 lines
873 B
YAML
34 lines
873 B
YAML
name: Deploy on sdk update
|
|
on:
|
|
repository_dispatch:
|
|
types: [sdk-update]
|
|
|
|
jobs:
|
|
update-sdk:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup node
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '18.x'
|
|
registry-url: 'https://registry.npmjs.org'
|
|
|
|
- name: Pull git modules
|
|
run: git submodule update --init --recursive
|
|
|
|
- name: Install dependencies
|
|
run: yarn install
|
|
|
|
- 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 dependency to ${{ github.event.client_payload.version }}"
|
|
git push |