-
Notifications
You must be signed in to change notification settings - Fork 354
65 lines (62 loc) · 1.67 KB
/
update-typescript-api.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Update Rust/TS bindings
on:
workflow_dispatch:
schedule:
- cron: "0 5 * * *" # Runs every day at 5:00 AM UTC
jobs:
build:
runs-on:
labels: bare-metal
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Local build new Node
uses: ./.github/workflow-templates/cargo-build
- name: Upload Node
uses: actions/upload-artifact@v4
with:
name: moonbeam
path: build
update-typescript-api:
needs: build
runs-on: moonbeam-release-medium
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download Node
uses: actions/download-artifact@v4
with:
name: moonbeam
path: target/release
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version-file: "test/.nvmrc"
cache: pnpm
registry-url: https://registry.npmjs.org/
- name: Run Typegen
run: |
chmod uog+x target/release/moonbeam
pnpm i
cd test
pnpm typegen
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
base: master
branch: "update-typescript-api-${{ github.run_id }}"
commit-message: "Update Rust/TS bindings"
draft: true
title: "Update Rust/TS bindings"
reviewers: "moonsong-coredev"
labels: "B0-silent,D2-notlive"