forked from Moonsong-Labs/storage-hub
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (53 loc) · 1.75 KB
/
api-augment-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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Upgrade TypeScript API
on:
workflow_dispatch:
inputs:
sha:
description: Full SHA to build the pnpm package from
required: true
# TODO: When we start publishing runtimes, change steps to fetch from docker instead
jobs:
upgrading-typescript-api:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.sha }}
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- name: Use pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.4
- uses: actions-rust-lang/setup-rust-toolchain@v1.8
with:
cache: false
- uses: rui314/setup-mold@v1
- uses: ./.github/workflow-templates/setup-pnpm
- name: Install libpq-dev
run: sudo apt-get update && sudo apt-get install -y libpq-dev
- uses: arduino/setup-protoc@v3
- name: Build All
run: cargo build --release
- name: Check Built By Mold
run: readelf -p .comment target/release/storage-hub-node
- name: Regenerate TypeScript API with new runtime metadata
run: |
pnpm i
cd test
pnpm typegen
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
base: master
branch: "typescript-api-${{ github.event.inputs.sha }}"
commit-message: typescript API v0.${{ github.event.inputs.sha }}.0
draft: true
title: "Upgrade TypeScript API for runtime-${{ github.event.inputs.sha }}"
reviewers: "moonsong-coredev"
labels: "B0-silent,D2-notlive"