From fd3839e5d12cf16587394ac6b9f3a3f4aba801c8 Mon Sep 17 00:00:00 2001 From: Alex Lanz Date: Tue, 18 Nov 2025 14:53:03 +0100 Subject: [PATCH] switch to GitHub registry and optimize release notes --- .github/workflows/build-and-publish.yml | 11 +++++++++-- package.json | 1 + 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index 539834c..15f386a 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -22,14 +22,21 @@ jobs: with: token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} - uses: aboutbits/github-actions-base/git-setup@v2 + - uses: aboutbits/github-actions-node/configure-github-npm-registry-access@v3 + - uses: aboutbits/github-actions-node/configure-github-npm-registry-organization@v3 - uses: aboutbits/github-actions-node/build-and-publish-package@v3 id: package with: node-version: ${{ env.NODE_VERSION }} - registry-url: 'https://registry.npmjs.org' - registry-token: ${{ secrets.NPM_TOKEN }} + registry-url: 'https://npm.pkg.github.com' + registry-token: ${{ secrets.GITHUB_TOKEN }} increment: ${{ github.event.inputs.increment }} preid: ${{ github.event.inputs.preid }} - uses: aboutbits/github-actions-base/github-create-release@v2 with: tag-name: 'v${{ steps.package.outputs.version }}' + release-description: | + ```bash + npm install ${{ steps.package.outputs.name }}@^${{ steps.package.outputs.version }} + ``` + release-notes-generation: 'true' diff --git a/package.json b/package.json index 059d8a6..bf1fb7d 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ ], "private": false, "publishConfig": { + "registry": "https://npm.pkg.github.com", "access": "public" }, "prettier": "@aboutbits/prettier-config",