From fccefefc3211f11b3a2620ef46c4bce8b2f88cd7 Mon Sep 17 00:00:00 2001 From: Tony Spiro Date: Wed, 9 Sep 2026 10:17:03 -0700 Subject: [PATCH] chore: update release command to use npx for Changeset publishing and configure npm authentication in GitHub Actions --- .github/workflows/publish.yml | 9 ++++++++- package.json | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1f9912b..9a8b1c1 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -36,11 +36,18 @@ jobs: - name: Install packages run: bun install --frozen-lockfile + - name: Configure npm auth + run: | + echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc + echo "always-auth=true" >> .npmrc + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Create Release Pull Request or Publish id: changesets uses: changesets/action@v1 with: - publish: bun run release + publish: npm run release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 18fcbdd..6be75f2 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "format": "prettier --write src/**/*.ts", "test": "vitest run", "changeset": "changeset", - "release": "bun run build && changeset publish", + "release": "bun run build && npx changeset publish", "prepublishOnly": "bun run build" }, "keywords": [