diff --git a/.github/workflows/add-release-label.yml b/.github/workflows/add-release-label.yml index 1c66daa4eb72..f92f3f5fdc95 100644 --- a/.github/workflows/add-release-label.yml +++ b/.github/workflows/add-release-label.yml @@ -12,6 +12,12 @@ jobs: runs-on: ubuntu-latest if: github.event.pull_request.merged == true steps: + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 'lts/*' + + - run: corepack enable - name: Checkout repository uses: actions/checkout@v4 with: diff --git a/.github/workflows/check-pr-labels.yml b/.github/workflows/check-pr-labels.yml index 254d6b35bea7..eebd284a1561 100644 --- a/.github/workflows/check-pr-labels.yml +++ b/.github/workflows/check-pr-labels.yml @@ -17,13 +17,17 @@ jobs: pull-requests: read steps: + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 'lts/*' + - run: corepack enable + - name: Checkout repository uses: actions/checkout@v4 with: fetch-depth: 1 # This retrieves only the latest commit. - - run: corepack enable - - name: Set up Node.js uses: actions/setup-node@v4 with: diff --git a/.github/workflows/check-template-and-add-labels.yml b/.github/workflows/check-template-and-add-labels.yml index 85391473b72e..42fd2f236c72 100644 --- a/.github/workflows/check-template-and-add-labels.yml +++ b/.github/workflows/check-template-and-add-labels.yml @@ -10,6 +10,12 @@ jobs: check-template-and-add-labels: runs-on: ubuntu-latest steps: + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 'lts/*' + - run: corepack enable + - name: Checkout repository uses: actions/checkout@v4 with: diff --git a/.github/workflows/close-bug-report.yml b/.github/workflows/close-bug-report.yml index 977700e1ca5d..dbe8f17acc6f 100644 --- a/.github/workflows/close-bug-report.yml +++ b/.github/workflows/close-bug-report.yml @@ -12,6 +12,12 @@ jobs: runs-on: ubuntu-latest if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'Version-v') steps: + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 'lts/*' + - run: corepack enable + - name: Checkout repository uses: actions/checkout@v4 with: diff --git a/.github/workflows/codespaces.yml b/.github/workflows/codespaces.yml index 68f538dee512..d424a6a3e336 100644 --- a/.github/workflows/codespaces.yml +++ b/.github/workflows/codespaces.yml @@ -13,6 +13,12 @@ jobs: name: Generate cache image runs-on: ubuntu-latest steps: + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 'lts/*' + - run: corepack enable + - name: Checkout repository uses: actions/checkout@v4 with: diff --git a/.github/workflows/fitness-functions.yml b/.github/workflows/fitness-functions.yml index e796d4da09b9..001db44cde2f 100644 --- a/.github/workflows/fitness-functions.yml +++ b/.github/workflows/fitness-functions.yml @@ -9,13 +9,17 @@ jobs: runs-on: ubuntu-latest steps: + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 'lts/*' + - run: corepack enable + - name: Checkout code uses: actions/checkout@v4 with: fetch-depth: 0 - - run: corepack enable - - name: Use Node.js uses: actions/setup-node@v4 with: diff --git a/.github/workflows/update-lavamoat-policies.yml b/.github/workflows/update-lavamoat-policies.yml index fa0740b72930..80615df8f1ce 100644 --- a/.github/workflows/update-lavamoat-policies.yml +++ b/.github/workflows/update-lavamoat-policies.yml @@ -51,6 +51,11 @@ jobs: outputs: COMMIT_SHA: ${{ steps.commit-sha.outputs.COMMIT_SHA }} steps: + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 'lts/*' + - run: corepack enable - name: Checkout repository uses: actions/checkout@v4 - name: Checkout pull request @@ -75,6 +80,11 @@ jobs: needs: - prepare steps: + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 'lts/*' + - run: corepack enable - name: Checkout repository uses: actions/checkout@v4 - name: Checkout pull request @@ -109,6 +119,11 @@ jobs: - prepare - update-lavamoat-build-policy steps: + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 'lts/*' + - run: corepack enable - name: Checkout repository uses: actions/checkout@v4 - name: Checkout pull request