Skip to content

Commit a81a17f

Browse files
authored
chore(publish): move npm publish to CI (#333)
1 parent d713e75 commit a81a17f

File tree

2 files changed

+7
-17
lines changed

2 files changed

+7
-17
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,15 @@
11
name: Release
22

3-
permissions:
4-
contents: write
5-
63
on:
74
push:
85
tags:
96
- 'v*'
107

118
jobs:
129
release:
13-
runs-on: ubuntu-latest
14-
steps:
15-
- uses: actions/checkout@v3
16-
with:
17-
fetch-depth: 0
18-
19-
- uses: actions/setup-node@v3
20-
with:
21-
node-version: 18
22-
23-
- run: npx changelogithub
24-
env:
25-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10+
uses: sxzz/workflows/.github/workflows/release.yml@v1
11+
with:
12+
publish: true
13+
permissions:
14+
contents: write
15+
id-token: write

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"publint": "publint",
6363
"test": "vitest run",
6464
"test:watch": "vitest watch",
65-
"release": "bumpp && npm publish"
65+
"release": "bumpp"
6666
},
6767
"dependencies": {
6868
"@nuxt/kit": "^3.12.4",

0 commit comments

Comments
 (0)