Skip to content
This repository was archived by the owner on Jan 12, 2026. It is now read-only.

Commit 20dae40

Browse files
authored
chore: Fix build (#16)
1 parent 8224195 commit 20dae40

File tree

7 files changed

+1285
-619
lines changed

7 files changed

+1285
-619
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
branches: [main]
5+
permissions:
6+
contents: read
7+
jobs:
8+
ci:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v5
12+
- name: Setup Node.js
13+
uses: actions/setup-node@v5
14+
with:
15+
node-version-file: '.nvmrc'
16+
cache: 'npm'
17+
- name: Install dependencies
18+
run: npm ci
19+
20+
- name: Check format
21+
run: npm run format
22+
- name: Lint
23+
run: npm run lint
24+
- name: Build
25+
run: npm run build

.github/workflows/publish-rc.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ jobs:
1212

1313
steps:
1414
- name: Checkout repository
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v5
1616

1717
- name: Setup Node.js
18-
uses: actions/setup-node@v4
18+
uses: actions/setup-node@v5
1919
with:
20-
node-version: '18.20.8'
20+
node-version-file: '.nvmrc'
21+
cache: 'npm'
2122
registry-url: 'https://registry.npmjs.org'
2223

2324
- name: Get package name and current version from package.json
@@ -29,7 +30,7 @@ jobs:
2930
echo "::set-output name=current_version::$PACKAGE_VERSION"
3031
3132
- name: Install dependencies
32-
run: npm install
33+
run: npm ci
3334

3435
- name: Run lint
3536
run: npm run lint
@@ -83,7 +84,7 @@ jobs:
8384
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
8485

8586
- name: Create comment
86-
uses: peter-evans/create-or-update-comment@076d57233ac816370d98e4a8471745e4bab20c6e
87+
uses: peter-evans/create-or-update-comment@8da4c50e7142257262c9df90da4e74a59068c038
8788
with:
8889
token: ${{ secrets.GH_CQ_BOT }}
8990
issue-number: ${{ github.event.pull_request.number }}

.github/workflows/publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ jobs:
1212

1313
steps:
1414
- name: Checkout repository
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v5
1616

1717
- name: Setup Node.js
18-
uses: actions/setup-node@v4
18+
uses: actions/setup-node@v5
1919
with:
20-
node-version: '18.20.8'
20+
node-version-file: '.nvmrc'
21+
cache: 'npm'
2122
registry-url: 'https://registry.npmjs.org'
2223

2324
- name: Get package name and current version from package.json
@@ -47,7 +48,7 @@ jobs:
4748
4849
- name: Install dependencies
4950
if: steps.check_version.outputs.version_changed == 'true'
50-
run: npm install
51+
run: npm ci
5152

5253
- name: Build package
5354
if: steps.check_version.outputs.version_changed == 'true'

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22.19.0

0 commit comments

Comments
 (0)