fix: workflow

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

---------

Co-authored-by: charlesgauthereau <charles.gauthereau@soluce-technologies.com>
This commit is contained in:
Charles GTE
2026-03-06 11:22:16 +01:00
committed by GitHub
co-authored by charlesgauthereau
parent 64724d2a92
commit 59eb91f28f
2 changed files with 19 additions and 8 deletions
+17 -7
View File
@@ -24,8 +24,7 @@ jobs:
with:
fetch-depth: 0
token: ${{ steps.app-token.outputs.token }}
#ref: ${{ github.base_ref }}
ref: main
ref: ${{ github.base_ref }}
- uses: pnpm/action-setup@v4
@@ -39,13 +38,24 @@ jobs:
- run: git config --global user.name 'github-actions[bot]'
- run: git config --global user.email 'github-actions[bot]@users.noreply.github.com'
- run: git fetch origin main:main
- run: git checkout main
- name: Fetch tags
run: git fetch --tags
- name: Run release-it
id: release_step
# - name: Run release-it
# id: release_step
# run: |
# git pull origin main
run: pnpm exec release-it --ci
# pnpm exec release-it --ci
# env:
# GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
- name: Run release-it
id: release_step
run: |
git pull origin main
OUTPUT=$(pnpm exec release-it --ci)
echo "$OUTPUT"
# Extract the untagged draft release name
DRAFT_TAG=$(echo "$OUTPUT" | grep -o 'releases/tag/[^ ]*' | sed 's|releases/tag/||')
echo "draft_tag=$DRAFT_TAG" >> $GITHUB_OUTPUT
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
+2 -1
View File
@@ -2,7 +2,8 @@
"github": {
"release": true,
"draft": true,
"tokenRef": "GITHUB_TOKEN"
"tokenRef": "GITHUB_TOKEN",
"update": true
},
"git": {
"commit": true,