From 79db0ea7dddde53370695174d1f8555192c9042c Mon Sep 17 00:00:00 2001 From: Odd Gunnar Date: Wed, 3 Jul 2024 12:09:26 +0200 Subject: [PATCH] Publiser til GitHub NPM registry --- .github/workflows/master.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/master.yaml b/.github/workflows/master.yaml index 714038c..25d5e61 100644 --- a/.github/workflows/master.yaml +++ b/.github/workflows/master.yaml @@ -17,6 +17,7 @@ jobs: with: node-version: '16.13.1' cache: 'npm' + registry-url: https://npm.pkg.github.com - name: Install dependencies run: npm ci - name: Test @@ -24,7 +25,6 @@ jobs: - name: Build run: npm run build - name: Publish - run: npx semantic-release + run: npm publish env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - NPM_TOKEN: ${{secrets.NPM_TOKEN}} + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}