From 6322ce429cfb27c68bc8980d65e88d1ebbd4fddf Mon Sep 17 00:00:00 2001 From: Rogin Farrer Date: Fri, 7 Apr 2023 11:04:16 -0400 Subject: [PATCH] hopefully fix ci releases --- .github/workflows/release.yml | 20 +++++++++----------- package.json | 7 ++++--- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b89e3d1..34b4456 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,30 +12,28 @@ jobs: env: CI: true steps: - - uses: pnpm/action-setup@v2.2.4 - with: - version: 7.30.3 - - - name: Checkout Repo - uses: actions/checkout@main + - name: Checkout repo + uses: actions/checkout@v3 with: fetch-depth: 0 token: ${{ secrets.GITHUB_TOKEN }} + - uses: pnpm/action-setup@v2 + - name: Setup Node.js uses: actions/setup-node@main with: - node-version-file: '.nvmrc' + node-version: '.nvmrc' cache: 'pnpm' - - name: Install Dependencies + - name: Install dependencies run: pnpm i - name: Create release PR or publish to npm - uses: changesets/action@v1 + uses: changesets/action@c2918239208f2162b9d27a87f491375c51592434 with: - version: pnpm ci:version - publish: pnpm ci:publish + version: pnpm run version + publish: pnpm release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index cc18a5c..0743d61 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,8 @@ "lint": "turbo lint", "format": "prettier --write **/*.{js,ts,tsx,yml,md,md,json}", "example": "pnpm --filter example run start", - "ci:version": "changeset version && pnpm install --lockfile-only", - "ci:release": "pnpm build && changeset publish" + "version": "changeset version && pnpm install --lockfile-only", + "release": "pnpm build && changeset publish" }, "dependencies": { "@changesets/cli": "^2.25.2", @@ -29,5 +29,6 @@ "alias": { "process": "process/browser.js", "buffer": "buffer" - } + }, + "packageManager": "pnpm@7.30.3" }