Skip to content

Commit 0ea22de

Browse files
committed
switch to GitHub registry and optimize release notes
1 parent 3d0ae4d commit 0ea22de

File tree

13 files changed

+3133
-1152
lines changed

13 files changed

+3133
-1152
lines changed

.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

0 commit comments

Comments
 (0)