Skip to content

Commit 0637985

Browse files
committed
refactor(ci): build on release
1 parent 88232b6 commit 0637985

File tree

2 files changed

+9
-43
lines changed

2 files changed

+9
-43
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,16 @@ jobs:
1313
- name: Checkout code
1414
uses: actions/checkout@v4
1515

16-
- name: Get latest successful build run-id
17-
id: get_run_id
18-
run: |
19-
latest_run_id=$(gh api repos/${{ github.repository }}/actions/workflows/build.yml/runs \
20-
-q '.workflow_runs | map(select(.conclusion == "success")) | first | .id')
21-
echo "run_id=$latest_run_id" >> $GITHUB_ENV
22-
23-
- name: Download build artifacts
24-
uses: actions/download-artifact@v4
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v4
2518
with:
26-
name: build-artifacts
27-
path: dist
28-
run-id: ${{ env.run_id }}
19+
node-version: 20
20+
21+
- name: Install dependencies
22+
run: npm install
23+
24+
- name: Build project
25+
run: npm run build
2926

3027
- name: Create Release
3128
id: create_release

0 commit comments

Comments
 (0)