From bc9090a9f4d7d5206014ccc8f6538b80d1b6537a Mon Sep 17 00:00:00 2001 From: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com> Date: Wed, 11 Sep 2024 21:46:44 +0100 Subject: [PATCH] Have the release-automation workflows use the same setup as CI --- .github/workflows/plan-release.yml | 9 +++------ .github/workflows/publish.yml | 18 +++++++++++------- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/plan-release.yml b/.github/workflows/plan-release.yml index 6cbde29682..fd595fb77b 100644 --- a/.github/workflows/plan-release.yml +++ b/.github/workflows/plan-release.yml @@ -52,13 +52,10 @@ jobs: with: fetch-depth: 0 ref: 'main' - - uses: actions/setup-node@v4 + - uses: wyvox/action-setup-pnpm@v3 with: - node-version: 18 - - uses: pnpm/action-setup@v4 - with: - version: 8.5 - - run: pnpm install --frozen-lockfile + node-version: 20.1.0 + - name: "Generate Explanation and Prep Changelogs" id: explanation run: | diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 832e403ba3..2064f7c1ce 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -44,15 +44,19 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + + - name: 'Setup local TurboRepo server' + uses: felixmosh/turborepo-gh-artifacts@v2 with: - node-version: 18 - # This creates an .npmrc that reads the NODE_AUTH_TOKEN environment variable - registry-url: 'https://registry.npmjs.org' - - uses: pnpm/action-setup@v4 + repo-token: ${{ secrets.GITHUB_TOKEN }} + + - uses: wyvox/action-setup-pnpm@v3 with: - version: 8.5.0 - - run: pnpm install --frozen-lockfile + node-version: 20.1.0 + # This creates an .npmrc that reads the NODE_AUTH_TOKEN environment variable + node-registry-url: 'https://registry.npmjs.org' + + - name: npm publish run: pnpm release-plan publish env: