Skip to content

Commit 4f2ffcd

Browse files
committed
update workflow
1 parent 75ebedd commit 4f2ffcd

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,24 @@ jobs:
2828
- name: Set Yarn registry
2929
run: yarn config set registry https://registry.npmjs.org
3030

31-
- name: Install dependencies
31+
- name: Install dependencies with Yarn
32+
id: yarn_install
33+
continue-on-error: true
3234
run: yarn install --frozen-lockfile
3335

34-
- name: Build
36+
- name: Install dependencies with npm (fallback)
37+
if: steps.yarn_install.outcome == 'failure'
38+
run: npm ci
39+
40+
- name: Build with Yarn
41+
id: yarn_build
42+
continue-on-error: true
3543
run: yarn build
3644

45+
- name: Build with npm (fallback)
46+
if: steps.yarn_build.outcome == 'failure'
47+
run: npm run build
48+
3749
- name: Archive build output
3850
run: |
3951
cd dist

0 commit comments

Comments
 (0)