fix: workflow

* 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 09:48:32 +01:00
committed by GitHub
co-authored by charlesgauthereau
parent 3f7eb4528e
commit 044edcda07
2 changed files with 8 additions and 18 deletions
+7 -17
View File
@@ -42,24 +42,14 @@ jobs:
# id: release_step # id: release_step
# run: | # run: |
# git pull origin main # git pull origin main
# pnpm exec release-it --ci --ci-output # pnpm exec release-it --ci
# env: # env:
# GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} # GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
- name: Create tag only
run: pnpm exec release-it --ci --no-github
- name: Run release-it - name: Push tag
id: release_step run: git push origin v$(pnpm exec release-it --ci --dry-run | grep 'next version' | awk '{print $NF}')
run: |
git pull origin main
TAG=$(pnpm exec release-it --ci --ci-output | grep -oE '🔗 https://github.com/.+/releases/tag/([^\s]+)' | awk -F/ '{print $NF}')
echo "tag=$TAG" >> $GITHUB_OUTPUT
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
- name: Create GitHub release
- name: Convert release to draft run: pnpm exec release-it --ci --no-npm
run: |
echo "Updating release $TAG to draft"
RELEASE_ID=$(gh release view "$TAG" --json id -q .id)
gh release edit "$RELEASE_ID" --draft
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"github": { "github": {
"release": true, "release": true,
"draft": false, "draft": true,
"tokenRef": "GITHUB_TOKEN" "tokenRef": "GITHUB_TOKEN"
}, },
"git": { "git": {