Skip to content

Commit 1aeff54

Browse files
RambokDevcharlesgauthereau
andauthored
fix: workflow
* fix * fix * fix * fix * fix * fix * fix * fix * fix --------- Co-authored-by: charlesgauthereau <charles.gauthereau@soluce-technologies.com>
1 parent b81ad07 commit 1aeff54

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/auto-release.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,19 @@ jobs:
4545
# pnpm exec release-it --ci
4646
# env:
4747
# GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
48-
- name: Create tag only
49-
run: pnpm exec release-it --ci --no-github
48+
- name: Create tag and push it
49+
run: |
50+
git pull origin main
51+
pnpm exec release-it --ci --no-github
52+
env:
53+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
5054

5155
- name: Push tag
5256
run: git push origin v$(pnpm exec release-it --ci --dry-run | grep 'next version' | awk '{print $NF}')
57+
env:
58+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
5359

5460
- name: Create GitHub release
5561
run: pnpm exec release-it --ci --no-npm
62+
env:
63+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}

0 commit comments

Comments
 (0)