Skip to content

Commit 1f664fc

Browse files
committed
ci: do less in workflow
1 parent 7ea235e commit 1f664fc

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name: release
22

33
on:
4-
workflow_dispatch:
4+
push:
5+
tags:
6+
- "v*"
57

68
# Remove default permissions of GITHUB_TOKEN for security
79
# https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
@@ -12,7 +14,6 @@ jobs:
1214
if: github.repository_owner == 'nuxt'
1315
permissions:
1416
id-token: write
15-
contents: write
1617
runs-on: ubuntu-latest
1718
timeout-minutes: 20
1819
steps:
@@ -32,13 +33,8 @@ jobs:
3233
- name: Prepare build environment
3334
run: pnpm dev:prepare
3435

35-
- name: Configure git
36-
run: |
37-
git config --global user.name "Daniel Roe"
38-
git config --global user.email "daniel@roe.dev"
39-
4036
- name: Release
41-
run: pnpm changelogen --publish --release --push
37+
run: pnpm changelogen --publish
4238
env:
4339
NODE_AUTH_TOKEN: ${{ secrets.RELEASE_NODE_AUTH_TOKEN }}
4440
NPM_CONFIG_PROVENANCE: true

0 commit comments

Comments
 (0)