From 65616cc42ef5dee94160e99594bc690103bb7de1 Mon Sep 17 00:00:00 2001 From: Abhishek Jain Date: Wed, 18 Feb 2026 07:43:46 +0100 Subject: [PATCH] ci: Migrate package publishing from GitHub Packages to npmjs.org. --- .github/workflows/release.yml | 9 ++++----- package.json | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a4627fa..d3cbf48 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,6 +33,7 @@ jobs: with: node-version: '22' cache: 'pnpm' + registry-url: 'https://registry.npmjs.org' - run: pnpm install --frozen-lockfile @@ -46,9 +47,7 @@ jobs: exit 1 fi - - name: Publish to GitHub Packages - run: | - pnpm config set //npm.pkg.github.com/:_authToken ${{ secrets.GITHUB_TOKEN }} - pnpm publish --no-git-checks + - name: Publish to npm + run: pnpm publish --no-git-checks --access public env: - NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 93a4039..36ea2e7 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ }, "publishConfig": { "access": "public", - "registry": "https://npm.pkg.github.com/" + "registry": "https://registry.npmjs.org/" }, "devDependencies": { "@eslint/js": "^9.0.0",