File tree Expand file tree Collapse file tree 1 file changed +13
-17
lines changed Expand file tree Collapse file tree 1 file changed +13
-17
lines changed Original file line number Diff line number Diff line change 1
- name : release
2
-
3
- on :
4
- push :
5
- branches :
6
- - main
1
+ name : Release
7
2
8
3
permissions :
9
4
contents : write
10
5
6
+ on :
7
+ push :
8
+ tags :
9
+ - ' v*'
11
10
jobs :
12
11
release :
13
12
runs-on : ubuntu-latest
14
- if : ${{ github.repository_owner == 'nuxt' && github.event_name == 'push' }}
15
- permissions :
16
- id-token : write
17
13
steps :
18
14
- uses : actions/checkout@v4
19
- - uses : pnpm/action-setup@v4
20
- - name : Install Node.js
21
- uses : actions/setup-node@v4
22
15
with :
23
- node-version : 22
24
- cache : ' pnpm'
25
- - run : pnpm install
16
+ fetch-depth : 0
17
+
18
+ - name : Install pnpm
19
+ uses : pnpm/action-setup@v4
26
20
27
- - name : Prepare build environment
28
- run : pnpm dev:prepare
21
+ - name : Set node
22
+ uses : actions/setup-node@v4
23
+ with :
24
+ node-version-file : ' package.json'
29
25
30
26
- run : npx changelogithub
31
27
env :
You can’t perform that action at this time.
0 commit comments