We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75ebedd commit 4f2ffcdCopy full SHA for 4f2ffcd
1 file changed
.github/workflows/release.yml
@@ -28,12 +28,24 @@ jobs:
28
- name: Set Yarn registry
29
run: yarn config set registry https://registry.npmjs.org
30
31
- - name: Install dependencies
+ - name: Install dependencies with Yarn
32
+ id: yarn_install
33
+ continue-on-error: true
34
run: yarn install --frozen-lockfile
35
- - 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
43
run: yarn build
44
45
+ - name: Build with npm (fallback)
46
+ if: steps.yarn_build.outcome == 'failure'
47
+ run: npm run build
48
49
- name: Archive build output
50
run: |
51
cd dist
0 commit comments