From c4617d6ab5bfad726f8d11f908693bd31114ddff Mon Sep 17 00:00:00 2001 From: Jonas Duri Date: Sat, 25 Nov 2023 09:53:22 +0100 Subject: [PATCH] change publish-npm job --- .github/workflows/build-and-deploy.yml | 13 ++++--------- .npmrc | 2 +- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 8fa260e..be94c1f 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -71,15 +71,10 @@ jobs: uses: actions/setup-node@v4 with: node-version: '20' # Specify your Node.js version here - - - name: Install Dependencies - run: npm install - - - name: Build - run: npm run build - - - name: Publish to NPM - run: npm publish + registry-url: 'https://registry.npmjs.org' + - run: npm ci + - run: npm run build + - run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.npmrc b/.npmrc index 38f11c6..214c29d 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1 @@ -registry=https://registry.npmjs.org +registry=https://registry.npmjs.org/