From 2c77639b9e359a5ba45eb5f91eb64e2b8b93ff01 Mon Sep 17 00:00:00 2001 From: Stefan Seifert Date: Wed, 1 May 2024 09:13:11 +0200 Subject: [PATCH] switch to npm registry for publishing packages --- .github/workflows/release-package.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-package.yml b/.github/workflows/release-package.yml index 36c5522..06a5d61 100644 --- a/.github/workflows/release-package.yml +++ b/.github/workflows/release-package.yml @@ -19,19 +19,18 @@ jobs: - run: npm run test:coverage - run: npm run build - publish-gpr: + publish-npm-registry: needs: build runs-on: ubuntu-latest permissions: - packages: write - contents: read + id-token: write steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: 20 - registry-url: https://npm.pkg.github.com/ + registry-url: https://registry.npmjs.org - run: npm ci - - run: npm publish + - run: npm publish --provenance --access public env: - NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}