Skip to content

Commit

Permalink
Set yarn version in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
WenInCode committed Dec 22, 2023
1 parent ae43bea commit e854a1c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/changelog-check.yml
Expand Up @@ -21,6 +21,8 @@ jobs:
with:
ref: ${{github.event.pull_request.head.sha}}
fetch-depth: 0
- name: Update Yarn
run: yarn set version stable
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Check if changeset is required and present
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Expand Up @@ -33,8 +33,10 @@ jobs:
- name: Install Node
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3.7.0
with:
node-version: 16.x
node-version: 18.x
cache: yarn
- name: Update Yarn
run: yarn set version stable
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Lint
Expand All @@ -53,6 +55,8 @@ jobs:
with:
node-version: 16.x
cache: yarn
- name: Update Yarn
run: yarn set version stable
- name: Install Dependencies
run: yarn install --no-lockfile
- name: Run Tests
Expand Down Expand Up @@ -83,6 +87,8 @@ jobs:
with:
node-version: 16.x
cache: yarn
- name: Update Yarn
run: yarn set version stable
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Run Tests
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Expand Up @@ -16,11 +16,14 @@ jobs:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0

- name: Setup Node.js 16.x
- name: Setup Node.js 18.x
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3.7.0
with:
node-version: 16.x
node-version: 18.x
cache-dependency-path: yarn.lock

- name: Update Yarn
run: yarn set version stable

- name: Install Dependencies
run: yarn
Expand Down

0 comments on commit e854a1c

Please sign in to comment.