Skip to content

Commit 5d10838

Browse files
authored
build: add github workflows (#19)
1 parent 3c3539a commit 5d10838

File tree

2 files changed

+30
-4
lines changed

2 files changed

+30
-4
lines changed

.github/workflows/build.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build Theme
2+
on:
3+
push:
4+
branches:
5+
- develop
6+
- main
7+
pull_request:
8+
branches:
9+
- develop
10+
- main
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
max-parallel: 24
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Setup Node
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 20.x
22+
registry-url: 'https://registry.npmjs.org'
23+
- name: Install dependencies 📦
24+
run: npm install
25+
- name: Run build lib
26+
run: npm run build:lib

.github/workflows/publish.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
name: Node.js Package
1+
name: Publish new release
22
on:
33
release:
44
types: [created]
55
jobs:
66
build:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2
10-
- uses: actions/setup-node@v2
9+
- uses: actions/checkout@v4
10+
uses: actions/setup-node@v4
1111
with:
12-
node-version: '18.x'
12+
node-version: '20.x'
1313
registry-url: 'https://registry.npmjs.org'
1414
- run: npm install
1515
- run: npm run build:lib

0 commit comments

Comments
 (0)