From 84dd8749255e4ad0c08654cf85f99b7c87ec2239 Mon Sep 17 00:00:00 2001 From: Manuel Holtgrewe Date: Wed, 31 Jan 2024 09:10:46 +0100 Subject: [PATCH] feat: enable publishing to central npm (#58) --- .github/workflows/release-please.yml | 8 +++----- .npmrc | 2 -- package.json | 3 --- 3 files changed, 3 insertions(+), 10 deletions(-) delete mode 100644 .npmrc diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 9b0c7e6..bb2502e 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -38,12 +38,10 @@ jobs: with: node-version: "20.x" cache: "npm" - registry-url: https://npm.pkg.github.com/ - name: Install dependencies run: npm ci - - name: Publish - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.BOT_TOKEN }} + - uses: JS-DevTools/npm-publish@v3 + with: + token: ${{ secrets.NPM_TOKEN }} diff --git a/.npmrc b/.npmrc deleted file mode 100644 index 552deb3..0000000 --- a/.npmrc +++ /dev/null @@ -1,2 +0,0 @@ -@bihealth:registry=https://npm.pkg.github.com -always-auth=true diff --git a/package.json b/package.json index 7c977a1..98b4442 100644 --- a/package.json +++ b/package.json @@ -6,9 +6,6 @@ "type": "git", "url": "https://github.com/bihealth/reev-frontend-lib.git" }, - "publishConfig": { - "@bihealth:registry": "https://npm.pkg.github.com" - }, "type": "module", "files": [ "dist"