From 4420829deec542880e87c86cbc0d5a10b04f4f41 Mon Sep 17 00:00:00 2001 From: Herdi Tr Date: Sun, 4 May 2025 17:00:37 +0700 Subject: [PATCH 1/3] chore: enhance handling of release draft preparation --- .github/workflows/release.yml | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d3c34e0..fa6b6d3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: create-release: runs-on: ubuntu-latest outputs: - id: ${{ steps.release-draft.outputs.id }} + id: ${{ steps.release-draft.outputs.result }} steps: - uses: actions/checkout@v4 @@ -25,23 +25,23 @@ jobs: echo "PACKAGE_VERSION=$VERSION" >> $GITHUB_ENV echo "version=$VERSION" >> $GITHUB_OUTPUT - - name: Create GitHub release draft - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - gh release create "v${{ steps.get-version.outputs.version }}" \ - --title "v${{ steps.get-version.outputs.version }}" \ - --notes "Take a look at the assets to download and install this app." \ - --draft \ - --target "${{ github.ref_name }}" - - - name: Get GitHub release ID + - name: Prepare GitHub release draft id: release-draft + uses: actions/github-script@v6 env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - RELEASE_ID=$(gh release view "v${{ steps.get-version.outputs.version }}" --json id -q ".id") - echo "id=$RELEASE_ID" >> $GITHUB_OUTPUT + REF_NAME: ${{ github.ref_name }} + with: + script: | + const { data } = await github.rest.repos.createRelease({ + owner: context.repo.owner, + repo: context.repo.repo, + tag_name: `v${process.env.PACKAGE_VERSION}`, + name: `v${process.env.PACKAGE_VERSION}`, + body: 'Take a look at the assets to download and install.', + draft: true, + prerelease: process.env.REF_NAME !== 'stable' + }) + return data.id build: needs: create-release From fc8b3e00b9a9efc9b8685cb7a0c471c4443f5288 Mon Sep 17 00:00:00 2001 From: Herdi Tr Date: Sun, 4 May 2025 17:00:45 +0700 Subject: [PATCH 2/3] chore(release): v1.0.0-alpha.1 --- apps/devu-api/package.json | 2 +- apps/devu/package.json | 2 +- apps/devu/tauri/Cargo.toml | 2 +- apps/devu/tauri/tauri.alpha.conf.json | 2 +- package.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/devu-api/package.json b/apps/devu-api/package.json index 3407e49..c078e75 100644 --- a/apps/devu-api/package.json +++ b/apps/devu-api/package.json @@ -1,6 +1,6 @@ { "name": "devu-api", - "version": "1.0.0-alpha.0", + "version": "1.0.0-alpha.1", "scripts": { "dev": "bun run --hot src/index.ts", "build": "bun run scripts/build.ts", diff --git a/apps/devu/package.json b/apps/devu/package.json index 854ed1d..8c20fe6 100644 --- a/apps/devu/package.json +++ b/apps/devu/package.json @@ -1,7 +1,7 @@ { "name": "devu", "type": "module", - "version": "1.0.0-alpha.0", + "version": "1.0.0-alpha.1", "private": true, "scripts": { "dev": "bun run prepare && vite", diff --git a/apps/devu/tauri/Cargo.toml b/apps/devu/tauri/Cargo.toml index eb20ce2..30f52f6 100644 --- a/apps/devu/tauri/Cargo.toml +++ b/apps/devu/tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "devu" -version = "1.0.0-alpha.0" +version = "1.0.0-alpha.1" description = "Developer utility collections" authors = [ "Herdi Tr." ] edition = "2021" diff --git a/apps/devu/tauri/tauri.alpha.conf.json b/apps/devu/tauri/tauri.alpha.conf.json index 14596d5..5b4e23a 100644 --- a/apps/devu/tauri/tauri.alpha.conf.json +++ b/apps/devu/tauri/tauri.alpha.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "devu-alpha", - "version": "1.0.0-alpha.0", + "version": "1.0.0-alpha.1", "identifier": "dev.hrdtr.devu-alpha", "app": { "windows": [ diff --git a/package.json b/package.json index 5e75863..4e182c3 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "devu-monorepo", "type": "module", - "version": "1.0.0-alpha.0", + "version": "1.0.0-alpha.1", "private": true, "workspaces": [ "apps/*", From 60cf2eceb66d53c737e801939c9f130912fb390a Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 4 May 2025 10:01:13 +0000 Subject: [PATCH 3/3] chore(deps): update actions/github-script action to v7 --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fa6b6d3..1519b7a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,7 +27,7 @@ jobs: - name: Prepare GitHub release draft id: release-draft - uses: actions/github-script@v6 + uses: actions/github-script@v7 env: REF_NAME: ${{ github.ref_name }} with: