Skip to content

Commit b69fcd3

Browse files
committed
switch to GitHub registry and optimize release notes
1 parent 2c2ce96 commit b69fcd3

3 files changed

Lines changed: 15 additions & 2 deletions

File tree

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,22 @@ 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'
43+

.github/workflows/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
node_version: [18, 20, 22]
1616
steps:
1717
- uses: actions/checkout@v5
18+
- uses: aboutbits/github-actions-node/configure-github-npm-registry-access@v3
19+
- uses: aboutbits/github-actions-node/configure-github-npm-registry-organization@v3
1820
- uses: aboutbits/github-actions-node/setup-and-install@v3
1921
with:
2022
node-version: ${{ matrix.node_version }}
@@ -33,6 +35,8 @@ jobs:
3335
node_version: [18, 20, 22]
3436
steps:
3537
- uses: actions/checkout@v5
38+
- uses: aboutbits/github-actions-node/configure-github-npm-registry-access@v3
39+
- uses: aboutbits/github-actions-node/configure-github-npm-registry-organization@v3
3640
- uses: aboutbits/github-actions-node/setup-and-install@v3
3741
with:
3842
node-version: ${{ matrix.node_version }}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"ru.d.ts"
4141
],
4242
"publishConfig": {
43+
"registry": "https://npm.pkg.github.com",
4344
"access": "public"
4445
},
4546
"bugs": {

0 commit comments

Comments
 (0)