Cherry picking workflow to allow github release workflow to go through Co-authored-by: Satish Gandham <satish.iitg@gmail.com> Co-authored-by: Satish Gandham <hello@satishgandham.com>
This commit is contained in:
parent
b7654a5035
commit
a3e09506bd
17
.github/workflows/github-release.yml
vendored
17
.github/workflows/github-release.yml
vendored
|
|
@ -172,6 +172,23 @@ jobs:
|
|||
with:
|
||||
node-version: "16.14.0"
|
||||
|
||||
# actions/setup-node@v3 doesn’t work properly with Yarn 3
|
||||
# when the project lives in a subdirectory: https://github.com/actions/setup-node/issues/488
|
||||
# Restoring the cache manually instead
|
||||
- name: Restore Yarn cache
|
||||
if: steps.run_result.outputs.run_result != 'success'
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: app/.yarn/cache
|
||||
key: v1-yarn3-${{ hashFiles('app/yarn.lock') }}
|
||||
restore-keys: |
|
||||
v1-yarn3-
|
||||
|
||||
# Install all the dependencies
|
||||
- name: Install dependencies
|
||||
if: steps.run_result.outputs.run_result != 'success'
|
||||
run: yarn install --immutable
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
echo 'export const VERSION = "${{ needs.prelude.outputs.tag }}"' > src/version.js
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user