From 49240f6ed2c61edeca0ee2a07bc08a7222ae05fe Mon Sep 17 00:00:00 2001 From: Alex Lewin Date: Fri, 6 Sep 2024 14:57:45 -0400 Subject: [PATCH] fix: release workflow --- .github/workflows/release.yml | 16 ++++++++++------ .npmrc | 5 ----- packages/core-web/package.json | 3 ++- pnpm-lock.yaml | 2 +- 4 files changed, 13 insertions(+), 13 deletions(-) delete mode 100644 .npmrc diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 62d4159..856372c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,10 +15,8 @@ jobs: release: name: Release - permissions: - contents: write - id-token: write - pull-requests: write + needs: verify + permissions: write-all runs-on: ubuntu-latest steps: - name: Checkout Repo @@ -29,6 +27,11 @@ jobs: - name: Install dependencies uses: ./.github/actions/install-deps + - name: 🏗 Setup Node + uses: actions/setup-node@v3 + with: + registry-url: 'https://npm.pkg.github.com' + - name: Create Release Pull Request uses: changesets/action@v1 with: @@ -36,15 +39,16 @@ jobs: createGithubReleases: ${{ github.ref == 'refs/heads/main' }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Publish prerelease if: steps.changesets.outputs.published != 'true' continue-on-error: true env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - npm config set "//registry.npmjs.org/:_authToken" "$NPM_TOKEN" + npm config set "//registry.npmjs.org/:_authToken" "$NODE_AUTH_TOKEN" git reset --hard origin/main pnpm clean pnpm changeset version --no-git-tag --snapshot canary diff --git a/.npmrc b/.npmrc deleted file mode 100644 index 19b7d33..0000000 --- a/.npmrc +++ /dev/null @@ -1,5 +0,0 @@ -auto-install-peers=false -enable-pre-post-scripts=true -link-workspace-packages=deep -provenance=false -strict-peer-dependencies=false diff --git a/packages/core-web/package.json b/packages/core-web/package.json index d79c05e..e63b430 100644 --- a/packages/core-web/package.json +++ b/packages/core-web/package.json @@ -27,6 +27,7 @@ "typescript": "^5.2.2" }, "publishConfig": { - "access": "public" + "access": "public", + "registry": "https://npm.pkg.github.com" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ed7136d..ee1bcf0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,7 +1,7 @@ lockfileVersion: '9.0' settings: - autoInstallPeers: false + autoInstallPeers: true excludeLinksFromLockfile: false importers: