Skip to content

Commit 2bbe8e0

Browse files
committed
switch to GitHub registry and optimize release notes
1 parent a1270da commit 2bbe8e0

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/build-and-publish.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,21 @@ jobs:
2222
with:
2323
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
2424
- uses: aboutbits/github-actions-base/git-setup@v2
25+
- uses: aboutbits/github-actions-node/configure-github-npm-registry-access@v3
26+
- uses: aboutbits/github-actions-node/configure-github-npm-registry-organization@v3
2527
- uses: aboutbits/github-actions-node/build-and-publish-package@v3
2628
id: package
2729
with:
2830
node-version: ${{ env.NODE_VERSION }}
29-
registry-url: 'https://registry.npmjs.org'
30-
registry-token: ${{ secrets.NPM_TOKEN }}
31+
registry-url: 'https://npm.pkg.github.com'
32+
registry-token: ${{ secrets.GITHUB_TOKEN }}
3133
increment: ${{ github.event.inputs.increment }}
3234
preid: ${{ github.event.inputs.preid }}
3335
- uses: aboutbits/github-actions-base/github-create-release@v2
3436
with:
3537
tag-name: 'v${{ steps.package.outputs.version }}'
38+
release-description: |
39+
```bash
40+
npm install ${{ steps.package.outputs.name }}@^${{ steps.package.outputs.version }}
41+
```
42+
release-notes-generation: 'true'

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
],
2020
"private": false,
2121
"publishConfig": {
22+
"registry": "https://npm.pkg.github.com",
2223
"access": "public"
2324
},
2425
"main": "dist/index.js",

0 commit comments

Comments
 (0)