From 1f664fc5cd9c85f7e4b906d10be81526cb97d424 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Sat, 16 Mar 2024 13:53:49 -0700 Subject: [PATCH] ci: do less in workflow --- .github/workflows/release.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9bf8cd485..3ef6a17c4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,7 +1,9 @@ name: release on: - workflow_dispatch: + push: + tags: + - "v*" # Remove default permissions of GITHUB_TOKEN for security # https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs @@ -12,7 +14,6 @@ jobs: if: github.repository_owner == 'nuxt' permissions: id-token: write - contents: write runs-on: ubuntu-latest timeout-minutes: 20 steps: @@ -32,13 +33,8 @@ jobs: - name: Prepare build environment run: pnpm dev:prepare - - name: Configure git - run: | - git config --global user.name "Daniel Roe" - git config --global user.email "daniel@roe.dev" - - name: Release - run: pnpm changelogen --publish --release --push + run: pnpm changelogen --publish env: NODE_AUTH_TOKEN: ${{ secrets.RELEASE_NODE_AUTH_TOKEN }} NPM_CONFIG_PROVENANCE: true