Skip to content

Commit 7c3402d

Browse files
committed
chore: add build workflow
1 parent eec8226 commit 7c3402d

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

.github/workflows/build.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v5
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v6
19+
with:
20+
node-version: '24.x'
21+
22+
- name: Setup pnpm
23+
uses: pnpm/action-setup@v4
24+
with:
25+
version: 10
26+
27+
- name: Install dependencies
28+
run: pnpm install --frozen-lockfile
29+
30+
- name: Build project
31+
run: pnpm build

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
</p>
1616

1717
<p align="center">
18-
<a href="https://github.com/ecomfe/tempad-dev/actions/workflows/check-rewrite.yml"><img src="https://github.com/ecomfe/tempad-dev/actions/workflows/check-rewrite.yml/badge.svg" alt="check-script-rewrite"></a>
18+
<a href="https://github.com/ecomfe/tempad-dev/actions/workflows/build.yml"><img src="https://img.shields.io/github/actions/workflow/status/ecomfe/tempad-dev/build.yml?branch=main&label=build" alt="build"></a>
19+
<a href="https://github.com/ecomfe/tempad-dev/actions/workflows/check-rewrite.yml"><img src="https://img.shields.io/github/actions/workflow/status/ecomfe/tempad-dev/check-rewrite.yml?branch=main&label=script-rewrite" alt="check-script-rewrite"></a>
1920
</p>
2021

2122
<p align="center">
@@ -197,7 +198,7 @@ If there are components generated by the TemPad Figma plugin on the canvas, TemP
197198
</details>
198199

199200
<details>
200-
<summary><h2>Quirks mode</h2></summary>
201+
<summary><h2><a id="quirks-mode"></a>Quirks mode</h2></summary>
201202

202203
> [!CAUTION]
203204
> Quirks mode is no longer usable as of 2025.04.01. Figma removed the `window.DebuggingHelpers.logSelected` API, which was used to extract style data.

0 commit comments

Comments
 (0)