Skip to content

Commit 8b25e25

Browse files
committed
chore: update publish script
1 parent 3fb6301 commit 8b25e25

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,14 @@ jobs:
99
release:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v3
1313
with:
1414
fetch-depth: 0
15-
- uses: actions/setup-node@v2
15+
16+
- uses: actions/setup-node@v3
1617
with:
17-
node-version: 16
18-
registry-url: https://registry.npmjs.org/
19-
- run: npm i -g pnpm @antfu/ni
20-
- run: nci
21-
- run: nr test --if-present
22-
- run: npm publish --access public
23-
env:
24-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
25-
- run: npx conventional-github-releaser -p angular
18+
node-version: 16.x
19+
20+
- run: npx changelogithub
2621
env:
27-
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{secrets.GITHUB_TOKEN}}
22+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"lint": "eslint \"**/*.{ts,vue,mjs}\"",
4040
"lint:fix": "eslint \"**/*.{ts,vue,mjs}\" --fix",
4141
"prepublishOnly": "npm run build",
42-
"release": "bumpp --commit --tag --push"
42+
"release": "bumpp --commit --tag --push && npm publish"
4343
},
4444
"peerDependencies": {
4545
"vite": "^2.0.0"

0 commit comments

Comments
 (0)