Skip to content

Commit

Permalink
chore(ci): dont upgrade yarn unexpectedly
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Kowalleck <[email protected]>
  • Loading branch information
jkowalleck committed Nov 7, 2024
1 parent cf99b7e commit be6034d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 37 deletions.
31 changes: 10 additions & 21 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ concurrency:

env:
NODE_ACTIVE_LTS: '20' # https://nodejs.org/en/about/releases/
YARN_VERSION: '4.x' # https://yarnpkg.com/blog/
BUNDLES_DIR: bundles
DIST_DIR: dist
REPORTS_DIR: "CI_reports"
Expand All @@ -44,10 +43,8 @@ jobs:
with:
node-version: ${{ env.NODE_ACTIVE_LTS }}
# cache: 'yarn'
- name: Setup yarn ${{ env.YARN_VERSION }}
run: |
corepack enable yarn
yarn set version "$YARN_VERSION"
- name: Setup yarn
run: corepack enable yarn
- name: Setup subject
run: |
yarn install --no-immutable
Expand Down Expand Up @@ -98,10 +95,8 @@ jobs:
with:
node-version: ${{ env.NODE_ACTIVE_LTS }}
# cache: 'yarn'
- name: Setup yarn ${{ env.YARN_VERSION }}
run: |
corepack enable yarn
yarn set version "$YARN_VERSION"
- name: Setup yarn
run: corepack enable yarn
- name: Setup subject
run: |
yarn install --no-immutable
Expand Down Expand Up @@ -143,10 +138,8 @@ jobs:
with:
node-version: ${{ env.NODE_ACTIVE_LTS }}
# cache: 'yarn'
- name: Setup yarn ${{ env.YARN_VERSION }}
run: |
corepack enable yarn
yarn set version "$YARN_VERSION"
- name: Setup yarn
run: corepack enable yarn
- name: Setup subject
run: |
yarn install --no-immutable
Expand Down Expand Up @@ -179,10 +172,8 @@ jobs:
with:
node-version: ${{ env.NODE_ACTIVE_LTS }}
# cache: 'yarn'
- name: Setup yarn ${{ env.YARN_VERSION }}
run: |
corepack enable yarn
yarn set version "$YARN_VERSION"
- name: Setup yarn
run: corepack enable yarn
- name: Setup subject
run: yarn install --immutable
- name: fetch build artifact
Expand Down Expand Up @@ -242,10 +233,8 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
# cache: 'yarn'
- name: Setup yarn ${{ env.YARN_VERSION }}
run: |
corepack enable yarn
yarn set version "$YARN_VERSION"
- name: Setup yarn
run: corepack enable yarn
- name: Setup subject
run: yarn install --immutable
- name: setup-tests
Expand Down
22 changes: 6 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ env:
DIST_DIR: dist
PACKED_DIR: CI_packed
NODE_ACTIVE_LTS: "20" # https://nodejs.org/en/about/releases/
YARN_VERSION: '4.x' # https://yarnpkg.com/blog/

jobs:
bump:
Expand Down Expand Up @@ -99,11 +98,8 @@ jobs:
with:
node-version: ${{ env.NODE_ACTIVE_LTS }}
# cache: 'yarn'
- name: Setup yarn ${{ env.YARN_VERSION }}
run: |
set -eux
corepack enable yarn
yarn set version "$YARN_VERSION"
- name: Setup yarn
run: corepack enable yarn
- name: Setup subject
run: |
yarn install --no-immutable
Expand Down Expand Up @@ -172,11 +168,8 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_ACTIVE_LTS }}
- name: Setup yarn ${{ env.YARN_VERSION }}
run: |
set -eux
corepack enable yarn
yarn set version "$YARN_VERSION"
- name: Setup yarn
run: corepack enable yarn
- name: Setup subject
run: |
yarn install --no-immutable
Expand Down Expand Up @@ -214,11 +207,8 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_ACTIVE_LTS }}
- name: Setup yarn ${{ env.YARN_VERSION }}
run: |
set -eux
corepack enable yarn
yarn set version "$YARN_VERSION"
- name: Setup yarn
run: corepack enable yarn
- name: make lock
# for stupid reasons `yarn publish` requires a lockfile
run: |
Expand Down

0 comments on commit be6034d

Please sign in to comment.