Skip to content

Commit dbb02b9

Browse files
committed
Add GitHub Actions workflows for building and releasing with Node.js 20.x
- Created a new build workflow to automate the build process on push events. - Updated the release workflow to use Node.js 20.x instead of 18.x for consistency across workflows.
1 parent 7ef1e7e commit dbb02b9

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

.github/workflows/build.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Build
2+
3+
on: [push]
4+
5+
jobs:
6+
release:
7+
runs-on: ubuntu-latest
8+
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
9+
steps:
10+
- uses: actions/checkout@v4
11+
12+
- name: Prepare repository
13+
run: git fetch --unshallow --tags
14+
15+
- name: Use Node.js 20.x
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: 20.x
19+
20+
- name: Install dependencies
21+
run: npm install --ignore-scripts
22+
23+
- name: Build
24+
run: |
25+
npm run build
26+
27+
- name: Build Storybook
28+
run: |
29+
npm run build-storybook

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
- name: Prepare repository
1313
run: git fetch --unshallow --tags
1414

15-
- name: Use Node.js 18.x
15+
- name: Use Node.js 20.x
1616
uses: actions/setup-node@v4
1717
with:
18-
node-version: 18.x
18+
node-version: 20.x
1919

2020
- name: Install dependencies
2121
run: npm install --ignore-scripts

0 commit comments

Comments
 (0)