Skip to content

Commit f58d954

Browse files
committed
ci: add Node.js CI workflow for building and packaging editor
1 parent fbd2418 commit f58d954

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Node CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
pack:
9+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: ⬇️ Check out code
14+
uses: actions/checkout@v4
15+
16+
- name: 🟢 Enable Corepack
17+
run: corepack enable
18+
19+
- name: 🟢 Set up Node 20
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 20.x
23+
cache: yarn
24+
25+
- name: 📦 Install deps, build, pack
26+
run: |
27+
yarn install --frozen-lockfile
28+
yarn package
29+
env:
30+
CI: true
31+
32+
- name: 📤 Upload package artifact
33+
uses: actions/upload-artifact@v4
34+
with:
35+
name: imagekit-editor-package
36+
path: builds/imagekit-editor-*.tgz

0 commit comments

Comments
 (0)