Skip to content

Commit 543ea34

Browse files
committed
chore: fix release
1 parent 2f738cb commit 543ea34

File tree

1 file changed

+13
-17
lines changed

1 file changed

+13
-17
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,27 @@
1-
name: release
2-
3-
on:
4-
push:
5-
branches:
6-
- main
1+
name: Release
72

83
permissions:
94
contents: write
105

6+
on:
7+
push:
8+
tags:
9+
- 'v*'
1110
jobs:
1211
release:
1312
runs-on: ubuntu-latest
14-
if: ${{ github.repository_owner == 'nuxt' && github.event_name == 'push' }}
15-
permissions:
16-
id-token: write
1713
steps:
1814
- uses: actions/checkout@v4
19-
- uses: pnpm/action-setup@v4
20-
- name: Install Node.js
21-
uses: actions/setup-node@v4
2215
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
2620

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'
2925

3026
- run: npx changelogithub
3127
env:

0 commit comments

Comments
 (0)