diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 92ac32332..a6a0ef889 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -8,6 +8,9 @@ on: # Review gh actions docs if you want to further define triggers, paths, etc # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on +env: + NODE_VERSION: lts/* + permissions: contents: write @@ -19,8 +22,10 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 18 + node-version: ${{ env.NODE_VERSION }} cache: yarn + env: + SKIP_YARN_COREPACK_CHECK: 1 - name: Install dependencies run: corepack yarn install --immutable diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index 92f7f4cf8..c6556a4c8 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -30,6 +30,9 @@ jobs: uses: actions/setup-node@v3 with: node-version: ${{ env.NODE_VERSION }} + cache: yarn + env: + SKIP_YARN_COREPACK_CHECK: 1 - name: Environment Information run: npx envinfo - name: Install dependencies diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 807587375..c0cd5e83b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,6 +10,9 @@ on: merge_group: types: [checks_requested] +env: + NODE_VERSION: lts/* + concurrency: test-${{ github.ref }} jobs: @@ -20,8 +23,10 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 18 + node-version: ${{ env.NODE_VERSION }} cache: yarn + env: + SKIP_YARN_COREPACK_CHECK: 1 - name: Install dependencies run: corepack yarn install --immutable