Skip to content

Commit 65a4fff

Browse files
authored
Update build.yml
1 parent ee4e1db commit 65a4fff

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,16 @@ jobs:
2727

2828
- name: Install dependencies
2929
run: bun install
30+
31+
- name: Generate package-lock.json if missing
32+
run: npm install --package-lock-only --no-audit --no-fund
3033

3134
- name: Build
3235
run: bun run build
36+
3337
- name: Test
3438
run: bun test
39+
3540
- name: Deploy to cf-page branch
3641
uses: peaceiris/actions-gh-pages@v4
3742
with:
@@ -41,16 +46,21 @@ jobs:
4146

4247
- name: Build standalone
4348
run: bun run build-standalone-prod
49+
4450
- name: Install tree
4551
run: sudo apt-get install tree
52+
4653
- name: Print file tree
4754
run: tree
55+
4856
- name: Copy standalone.html
4957
run: |
5058
mkdir -p standalone
5159
cp dist/standalone.html standalone/
60+
5261
- name: Upload artifacts to tag
5362
uses: xresloader/upload-to-github-release@2bcae85344d41e21f7fc4c47fa2ed68223afdb49
5463
with:
5564
file: standalone/*
5665
draft: false
66+

0 commit comments

Comments
 (0)