Skip to content

Commit 4365b5a

Browse files
committed
switch to GitHub registry and optimize release notes
1 parent 0cbcccc commit 4365b5a

4 files changed

Lines changed: 23 additions & 12 deletions

File tree

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,15 @@ jobs:
2626
id: package
2727
with:
2828
node-version: ${{ env.NODE_VERSION }}
29-
registry-url: 'https://registry.npmjs.org'
30-
registry-token: ${{ secrets.NPM_TOKEN }}
29+
registry-url: 'https://npm.pkg.github.com'
30+
registry-token: ${{ secrets.GITHUB_TOKEN }}
3131
increment: ${{ github.event.inputs.increment }}
3232
preid: ${{ github.event.inputs.preid }}
3333
- uses: aboutbits/github-actions-base/github-create-release@v2
3434
with:
3535
tag-name: 'v${{ steps.package.outputs.version }}'
36+
release-description: |
37+
```bash
38+
npm install ${{ steps.package.outputs.name }}@^${{ steps.package.outputs.version }}
39+
```
40+
release-notes-generation: 'true'

.github/workflows/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
- uses: aboutbits/github-actions-node/setup-and-install@v3
1919
with:
2020
node-version: ${{ matrix.node_version }}
21+
registry-url: 'https://npm.pkg.github.com'
22+
registry-token: ${{ secrets.GITHUB_TOKEN }}
2123
- name: Lint
2224
run: npm run lint
2325
shell: bash
@@ -36,6 +38,8 @@ jobs:
3638
- uses: aboutbits/github-actions-node/setup-and-install@v3
3739
with:
3840
node-version: ${{ matrix.node_version }}
41+
registry-url: 'https://npm.pkg.github.com'
42+
registry-token: ${{ secrets.GITHUB_TOKEN }}
3943
- name: Test
4044
run: npm run test
4145
shell: bash

package-lock.json

Lines changed: 10 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
],
2121
"private": false,
2222
"publishConfig": {
23+
"registry": "https://npm.pkg.github.com",
2324
"access": "public"
2425
},
2526
"sideEffects": false,
@@ -49,7 +50,7 @@
4950
"postversion": "git push && git push --tags"
5051
},
5152
"devDependencies": {
52-
"@aboutbits/ts-config": "^1.1.3",
53+
"@aboutbits/ts-config": "^1.1.16",
5354
"@testing-library/jest-dom": "^6.4.2",
5455
"@testing-library/react": "^14.2.2",
5556
"@types/css-mediaquery": "^0.1.4",

0 commit comments

Comments
 (0)