mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
fix: workflow
* fix * fix * fix * fix * fix * fix * fix * fix --------- Co-authored-by: charlesgauthereau <charles.gauthereau@soluce-technologies.com>
This commit is contained in:
co-authored by
charlesgauthereau
parent
3f7eb4528e
commit
044edcda07
@@ -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
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"github": {
|
"github": {
|
||||||
"release": true,
|
"release": true,
|
||||||
"draft": false,
|
"draft": true,
|
||||||
"tokenRef": "GITHUB_TOKEN"
|
"tokenRef": "GITHUB_TOKEN"
|
||||||
},
|
},
|
||||||
"git": {
|
"git": {
|
||||||
|
|||||||
Reference in New Issue
Block a user