diff --git a/.github/workflows/bundlers.yml b/.github/workflows/bundlers.yml index 5c2aaa471..e5da8684f 100644 --- a/.github/workflows/bundlers.yml +++ b/.github/workflows/bundlers.yml @@ -22,6 +22,8 @@ jobs: isolate_uppy: name: Isolate Uppy packages runs-on: ubuntu-latest + env: + SKIP_YARN_COREPACK_CHECK: true steps: - name: Checkout sources uses: actions/checkout@v5 @@ -37,7 +39,7 @@ jobs: restore-keys: | ${{ runner.os }}-yarn- - name: Install Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: lts/* - name: Install dependencies diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8be34256e..fee9658a8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,6 +23,8 @@ jobs: unit_tests: name: Tests runs-on: ubuntu-latest + env: + SKIP_YARN_COREPACK_CHECK: true strategy: matrix: node-version: [lts/*] @@ -42,7 +44,7 @@ jobs: restore-keys: | ${{ runner.os }}-yarn- - name: Install Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: ${{matrix.node-version}} - name: Install dependencies @@ -63,6 +65,8 @@ jobs: types: name: Types runs-on: ubuntu-latest + env: + SKIP_YARN_COREPACK_CHECK: true steps: - name: Checkout sources uses: actions/checkout@v5 @@ -79,7 +83,7 @@ jobs: restore-keys: | ${{ runner.os }}-yarn- - name: Install Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: lts/* - name: Install dependencies @@ -97,7 +101,7 @@ jobs: uses: actions/checkout@v5 - name: Install Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: lts/* - name: Install dependencies diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 00b0dcc6c..69df9ccc0 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -32,6 +32,7 @@ jobs: runs-on: ubuntu-latest env: DIFF_BUILDER: true + SKIP_YARN_COREPACK_CHECK: true outputs: diff: ${{ steps.diff.outputs.OUTPUT_DIFF }} steps: @@ -54,7 +55,7 @@ jobs: restore-keys: | ${{ runner.os }}-yarn- - name: Install Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: lts/* - run: corepack yarn install diff --git a/.github/workflows/lockfile_check.yml b/.github/workflows/lockfile_check.yml index 9334b8201..d2d2d19bf 100644 --- a/.github/workflows/lockfile_check.yml +++ b/.github/workflows/lockfile_check.yml @@ -18,6 +18,8 @@ jobs: lint_lockfile: name: Lint yarn.lock runs-on: ubuntu-latest + env: + SKIP_YARN_COREPACK_CHECK: true steps: - name: Checkout sources uses: actions/checkout@v5 @@ -34,7 +36,7 @@ jobs: restore-keys: | ${{ runner.os }}-yarn- - name: Install Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: lts/* - name: Install dependencies diff --git a/.github/workflows/manual-cdn.yml b/.github/workflows/manual-cdn.yml index 7c6ec3eb4..b798e3b3f 100644 --- a/.github/workflows/manual-cdn.yml +++ b/.github/workflows/manual-cdn.yml @@ -23,6 +23,8 @@ env: jobs: upload: runs-on: ubuntu-latest + env: + SKIP_YARN_COREPACK_CHECK: true steps: - name: Checkout sources uses: actions/checkout@v5 @@ -39,7 +41,7 @@ jobs: restore-keys: | ${{ runner.os }}-yarn- - name: Install Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: lts/* - name: Install upload-to-cdn dependencies diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f96b793c8..d28c6b159 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,6 +11,8 @@ jobs: release: name: Release runs-on: ubuntu-latest + env: + SKIP_YARN_COREPACK_CHECK: true outputs: companionWasReleased: ${{ steps.checkIfCompanionWasReleased.outputs.version }} published: ${{ steps.changesets.outputs.published }} @@ -21,7 +23,7 @@ jobs: fetch-depth: 2 - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: lts/* @@ -38,10 +40,15 @@ jobs: - name: '@uppy/angular prepublish' run: corepack yarn workspace @uppy/angular prepublishOnly - - run: | + - name: Add npm token to yarnrc + run: | echo '' >> .yarnrc.yml echo 'npmAuthToken: "${NPM_TOKEN}"' >> .yarnrc.yml + - name: Add npm token to npmrc + run: | + echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > .npmrc + - name: Create Release Pull Request or Publish id: changesets uses: changesets/action@v1 @@ -58,6 +65,10 @@ jobs: run: | sed -i '/npmAuthToken:/d' .yarnrc.yml + - name: Remove npmrc + run: | + rm .npmrc + - name: Check if Companion was released id: checkIfCompanionWasReleased if: steps.changesets.outputs.published == 'true' diff --git a/.npmrc b/.npmrc deleted file mode 100644 index ae643592e..000000000 --- a/.npmrc +++ /dev/null @@ -1 +0,0 @@ -//registry.npmjs.org/:_authToken=${NPM_TOKEN}