Skip to content

Commit 4ab39fd

Browse files
committed
chore(Workflows): updated for yarn
1 parent 9c7a38b commit 4ab39fd

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/pr-preview.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,14 @@ jobs:
2424
- uses: actions/setup-node@v1
2525
with:
2626
node-version: '18'
27+
- run: corepack enable
2728
- uses: actions/cache@v4
2829
id: yarn-cache
2930
name: Load npm deps from cache
3031
with:
3132
path: '**/node_modules'
3233
key: ${{ runner.os }}-yarn-14-${{ hashFiles('yarn.lock') }}
33-
- run: yarn install --frozen-lockfile
34+
- run: yarn install --immutable
3435
if: steps.yarn-cache.outputs.cache-hit != 'true'
3536
- run: yarn lint:js
3637
name: Lint JS

.github/workflows/promote.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ jobs:
1313
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1414
steps:
1515
- uses: actions/checkout@v2
16-
- name: Build for promotion
17-
run: yarn install --frozen-lockfile && yarn build
1816
- uses: actions/setup-node@v3
1917
with:
2018
node-version: '18.x'
2119
registry-url: 'https://registry.npmjs.org'
20+
- run: corepack enable
21+
- name: Build for promotion
22+
run: yarn install --immutable && yarn build
2223
- name: GitHub Tag Name example
2324
run: |
2425
echo "Tag name from GITHUB_REF_NAME: $GITHUB_REF_NAME"

0 commit comments

Comments
 (0)