From 3ca8b385c47868661ae55be4c9d2d9b114031705 Mon Sep 17 00:00:00 2001 From: tobias-tengler <45513122+tobias-tengler@users.noreply.github.com> Date: Wed, 25 Mar 2026 19:44:50 +0100 Subject: [PATCH 01/14] Add update-github-actions matrix job --- .github/workflows/release.yml | 60 +++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3a5a70e56eb..698b6118e4a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -451,3 +451,63 @@ jobs: git add nitro-cli.rb git commit -m "๐Ÿบ Update nitro formula to ${{ steps.version.outputs.version }}" || exit 0 git push + + update-github-actions: + name: ๐Ÿ”„ Update GitHub Actions + runs-on: ubuntu-latest + needs: [build-nitro-cli] + if: startsWith(github.ref, 'refs/tags/') + strategy: + matrix: + repo: + - nitro-fusion-publish + + steps: + - name: ๐Ÿท๏ธ Get release version + run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV + + - name: ๐Ÿ“ฅ Checkout action repo + uses: actions/checkout@v6 + with: + repository: ChilliCream/${{ matrix.repo }} + token: ${{ secrets.GITHUB_ACTIONS_TOKEN }} + path: action-repo + + - name: ๐Ÿงฐ Setup Node + uses: actions/setup-node@v6 + with: + node-version: 22 + + - name: ๐Ÿงฐ Enable corepack + run: corepack enable + + - name: ๐Ÿ“ Update version in package.json + working-directory: action-repo + run: npm version "$VERSION" --no-git-tag-version + + - name: ๐Ÿ“ฆ Install dependencies & build + working-directory: action-repo + run: | + yarn install + yarn build + + - name: ๐Ÿ“ค Commit and push + working-directory: action-repo + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git add -A + git commit -m "Update Nitro CLI to $VERSION" + git push + + - name: ๐Ÿท๏ธ Create version tags + working-directory: action-repo + run: | + git tag "$VERSION" + git push origin "$VERSION" + + if [[ "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then + MAJOR=$(echo "$VERSION" | cut -d. -f1) + git tag -f "$MAJOR" + git push origin "$MAJOR" --force + fi From fa025c799d49bb4d1f68f5261535d319cd056462 Mon Sep 17 00:00:00 2001 From: tobias-tengler <45513122+tobias-tengler@users.noreply.github.com> Date: Wed, 25 Mar 2026 20:09:00 +0100 Subject: [PATCH 02/14] Update with new actions --- .github/workflows/release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 698b6118e4a..c9b196d009f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -461,6 +461,8 @@ jobs: matrix: repo: - nitro-fusion-publish + - nitro-fusion-upload + - nitro-fusion-validate steps: - name: ๐Ÿท๏ธ Get release version From ce35d44d6cb86d986f5b15c26be0067829bbc370 Mon Sep 17 00:00:00 2001 From: tobias-tengler <45513122+tobias-tengler@users.noreply.github.com> Date: Wed, 25 Mar 2026 20:22:25 +0100 Subject: [PATCH 03/14] Prefix versions with v --- .github/workflows/release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c9b196d009f..bbbaef1a881 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -505,11 +505,11 @@ jobs: - name: ๐Ÿท๏ธ Create version tags working-directory: action-repo run: | - git tag "$VERSION" - git push origin "$VERSION" + git tag "v$VERSION" + git push origin "v$VERSION" if [[ "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then MAJOR=$(echo "$VERSION" | cut -d. -f1) - git tag -f "$MAJOR" - git push origin "$MAJOR" --force + git tag -f "v$MAJOR" + git push origin "v$MAJOR" --force fi From 7e88b16729ff6b87188a0d957fc925a72d926ee8 Mon Sep 17 00:00:00 2001 From: tobias-tengler <45513122+tobias-tengler@users.noreply.github.com> Date: Wed, 25 Mar 2026 21:35:01 +0100 Subject: [PATCH 04/14] Add all action repositories to matrix --- .github/workflows/release.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bbbaef1a881..8806fce741b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -460,9 +460,22 @@ jobs: strategy: matrix: repo: - - nitro-fusion-publish + # - nitro-client-publish + # - nitro-client-upload + # - nitro-client-validate + # - nitro-fusion-publish - nitro-fusion-upload - - nitro-fusion-validate + # - nitro-fusion-validate + # - nitro-github-actions + # - nitro-mcp-publish + # - nitro-mcp-upload + # - nitro-mcp-validate + # - nitro-openapi-publish + # - nitro-openapi-upload + # - nitro-openapi-validate + # - nitro-schema-publish + # - nitro-schema-upload + # - nitro-schema-validate steps: - name: ๐Ÿท๏ธ Get release version From 75b26d2c873d1ef5f75c9bc6317b6f200c6158f7 Mon Sep 17 00:00:00 2001 From: tobias-tengler <45513122+tobias-tengler@users.noreply.github.com> Date: Thu, 26 Mar 2026 10:35:49 +0100 Subject: [PATCH 05/14] Add test workflow --- .github/workflows/release.yml | 15 ++-- .../workflows/test-update-github-actions.yml | 74 +++++++++++++++++++ 2 files changed, 84 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/test-update-github-actions.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8806fce741b..6d2602d63cc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -488,13 +488,18 @@ jobs: token: ${{ secrets.GITHUB_ACTIONS_TOKEN }} path: action-repo + - name: ๐Ÿงฐ Enable Corepack + run: | + corepack enable + corepack prepare yarn@4.2.2 --activate + yarn --version + - name: ๐Ÿงฐ Setup Node uses: actions/setup-node@v6 with: - node-version: 22 - - - name: ๐Ÿงฐ Enable corepack - run: corepack enable + node-version: 24 + cache: yarn + cache-dependency-path: action-repo/yarn.lock - name: ๐Ÿ“ Update version in package.json working-directory: action-repo @@ -523,6 +528,6 @@ jobs: if [[ "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then MAJOR=$(echo "$VERSION" | cut -d. -f1) - git tag -f "v$MAJOR" + git tag "v$MAJOR" --force git push origin "v$MAJOR" --force fi diff --git a/.github/workflows/test-update-github-actions.yml b/.github/workflows/test-update-github-actions.yml new file mode 100644 index 00000000000..36914e4fe8f --- /dev/null +++ b/.github/workflows/test-update-github-actions.yml @@ -0,0 +1,74 @@ +name: ๐Ÿงช Test Update GitHub Actions + +on: + workflow_dispatch: + +permissions: + contents: read + +jobs: + update-github-actions-test: + name: ๐Ÿ”„ Test update (${{ matrix.repo }}) + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + repo: + - nitro-fusion-upload + + env: + VERSION: 16.0.0-rc.1.15 + + steps: + - name: ๐Ÿ“ฅ Checkout action repo + uses: actions/checkout@v6 + with: + repository: ChilliCream/${{ matrix.repo }} + token: ${{ secrets.GITHUB_ACTIONS_TOKEN }} + path: action-repo + + - name: ๐Ÿงฐ Enable Corepack + run: | + corepack enable + corepack prepare yarn@4.2.2 --activate + yarn --version + + - name: ๐Ÿงฐ Setup Node + uses: actions/setup-node@v6 + with: + node-version: 22 + cache: yarn + cache-dependency-path: action-repo/yarn.lock + + - name: ๐Ÿ“ Update version in package.json + working-directory: action-repo + run: npm version "$VERSION" --no-git-tag-version + + - name: ๐Ÿ“ฆ Install dependencies & build + working-directory: action-repo + run: | + yarn install + yarn build + + - name: ๐Ÿงช Simulate commit and tag locally (no push) + working-directory: action-repo + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git add -A + + if git diff --cached --quiet; then + echo "No changes to commit in ${{ matrix.repo }}" + else + git commit -m "Update Nitro CLI to $VERSION" + fi + + git tag "v$VERSION" --force + echo "Created local test tag v$VERSION for ${{ matrix.repo }}" + + - name: ๐Ÿ“‹ Show resulting status + working-directory: action-repo + run: | + git status --short + git log -1 --oneline + git tag --list "v$VERSION" From d657a340c59bb493fd3ec5ee8dc4e76fbe60d650 Mon Sep 17 00:00:00 2001 From: tobias-tengler <45513122+tobias-tengler@users.noreply.github.com> Date: Thu, 26 Mar 2026 10:40:59 +0100 Subject: [PATCH 06/14] Add pull_request trigger --- .github/workflows/test-update-github-actions.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test-update-github-actions.yml b/.github/workflows/test-update-github-actions.yml index 36914e4fe8f..dc5fb57cd07 100644 --- a/.github/workflows/test-update-github-actions.yml +++ b/.github/workflows/test-update-github-actions.yml @@ -2,6 +2,7 @@ name: ๐Ÿงช Test Update GitHub Actions on: workflow_dispatch: + pull_request: permissions: contents: read From 5b735d9e9dc7468c92befe6a1446c665f3667abd Mon Sep 17 00:00:00 2001 From: tobias-tengler <45513122+tobias-tengler@users.noreply.github.com> Date: Thu, 26 Mar 2026 10:47:02 +0100 Subject: [PATCH 07/14] Use actions/create-github-app-token --- .github/workflows/release.yml | 11 ++++++++++- .github/workflows/test-update-github-actions.yml | 11 ++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6d2602d63cc..6b132cdb2ac 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -481,11 +481,20 @@ jobs: - name: ๐Ÿท๏ธ Get release version run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV + - name: ๐Ÿ” Create GitHub App token + id: app-token + uses: actions/create-github-app-token@v2 + with: + app-id: ${{ vars.ACTIONS_APP_ID }} + private-key: ${{ secrets.ACTIONS_APP_PRIVATE_KEY }} + owner: ChilliCream + repositories: ${{ matrix.repo }} + - name: ๐Ÿ“ฅ Checkout action repo uses: actions/checkout@v6 with: repository: ChilliCream/${{ matrix.repo }} - token: ${{ secrets.GITHUB_ACTIONS_TOKEN }} + token: ${{ steps.app-token.outputs.token }} path: action-repo - name: ๐Ÿงฐ Enable Corepack diff --git a/.github/workflows/test-update-github-actions.yml b/.github/workflows/test-update-github-actions.yml index dc5fb57cd07..35afc1d980d 100644 --- a/.github/workflows/test-update-github-actions.yml +++ b/.github/workflows/test-update-github-actions.yml @@ -21,11 +21,20 @@ jobs: VERSION: 16.0.0-rc.1.15 steps: + - name: ๐Ÿ” Create GitHub App token + id: app-token + uses: actions/create-github-app-token@v2 + with: + app-id: ${{ vars.ACTIONS_APP_ID }} + private-key: ${{ secrets.ACTIONS_APP_PRIVATE_KEY }} + owner: ChilliCream + repositories: ${{ matrix.repo }} + - name: ๐Ÿ“ฅ Checkout action repo uses: actions/checkout@v6 with: repository: ChilliCream/${{ matrix.repo }} - token: ${{ secrets.GITHUB_ACTIONS_TOKEN }} + token: ${{ steps.app-token.outputs.token }} path: action-repo - name: ๐Ÿงฐ Enable Corepack From d5678ef3f8777d23485cc442a9ce6a66623cd3ab Mon Sep 17 00:00:00 2001 From: tobias-tengler <45513122+tobias-tengler@users.noreply.github.com> Date: Thu, 26 Mar 2026 12:56:33 +0100 Subject: [PATCH 08/14] Trigger release workflow --- .github/workflows/release.yml | 85 +++++-------------- .../workflows/test-update-github-actions.yml | 58 ++----------- 2 files changed, 28 insertions(+), 115 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6b132cdb2ac..625dc22d42c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -460,22 +460,21 @@ jobs: strategy: matrix: repo: - # - nitro-client-publish - # - nitro-client-upload - # - nitro-client-validate - # - nitro-fusion-publish + - nitro-client-publish + - nitro-client-upload + - nitro-client-validate + - nitro-fusion-publish - nitro-fusion-upload - # - nitro-fusion-validate - # - nitro-github-actions - # - nitro-mcp-publish - # - nitro-mcp-upload - # - nitro-mcp-validate - # - nitro-openapi-publish - # - nitro-openapi-upload - # - nitro-openapi-validate - # - nitro-schema-publish - # - nitro-schema-upload - # - nitro-schema-validate + - nitro-fusion-validate + - nitro-mcp-publish + - nitro-mcp-upload + - nitro-mcp-validate + - nitro-openapi-publish + - nitro-openapi-upload + - nitro-openapi-validate + - nitro-schema-publish + - nitro-schema-upload + - nitro-schema-validate steps: - name: ๐Ÿท๏ธ Get release version @@ -490,53 +489,11 @@ jobs: owner: ChilliCream repositories: ${{ matrix.repo }} - - name: ๐Ÿ“ฅ Checkout action repo - uses: actions/checkout@v6 - with: - repository: ChilliCream/${{ matrix.repo }} - token: ${{ steps.app-token.outputs.token }} - path: action-repo - - - name: ๐Ÿงฐ Enable Corepack - run: | - corepack enable - corepack prepare yarn@4.2.2 --activate - yarn --version - - - name: ๐Ÿงฐ Setup Node - uses: actions/setup-node@v6 - with: - node-version: 24 - cache: yarn - cache-dependency-path: action-repo/yarn.lock - - - name: ๐Ÿ“ Update version in package.json - working-directory: action-repo - run: npm version "$VERSION" --no-git-tag-version - - - name: ๐Ÿ“ฆ Install dependencies & build - working-directory: action-repo - run: | - yarn install - yarn build - - - name: ๐Ÿ“ค Commit and push - working-directory: action-repo - run: | - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" - git add -A - git commit -m "Update Nitro CLI to $VERSION" - git push - - - name: ๐Ÿท๏ธ Create version tags - working-directory: action-repo + - name: ๐Ÿš€ Trigger action repository update workflow + env: + GH_TOKEN: ${{ steps.app-token.outputs.token }} run: | - git tag "v$VERSION" - git push origin "v$VERSION" - - if [[ "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then - MAJOR=$(echo "$VERSION" | cut -d. -f1) - git tag "v$MAJOR" --force - git push origin "v$MAJOR" --force - fi + gh api --method POST \ + "/repos/ChilliCream/${{ matrix.repo }}/dispatches" \ + -f event_type=update-from-platform \ + -f client_payload[version]="$VERSION" diff --git a/.github/workflows/test-update-github-actions.yml b/.github/workflows/test-update-github-actions.yml index 35afc1d980d..2f2ae1a50ba 100644 --- a/.github/workflows/test-update-github-actions.yml +++ b/.github/workflows/test-update-github-actions.yml @@ -30,55 +30,11 @@ jobs: owner: ChilliCream repositories: ${{ matrix.repo }} - - name: ๐Ÿ“ฅ Checkout action repo - uses: actions/checkout@v6 - with: - repository: ChilliCream/${{ matrix.repo }} - token: ${{ steps.app-token.outputs.token }} - path: action-repo - - - name: ๐Ÿงฐ Enable Corepack - run: | - corepack enable - corepack prepare yarn@4.2.2 --activate - yarn --version - - - name: ๐Ÿงฐ Setup Node - uses: actions/setup-node@v6 - with: - node-version: 22 - cache: yarn - cache-dependency-path: action-repo/yarn.lock - - - name: ๐Ÿ“ Update version in package.json - working-directory: action-repo - run: npm version "$VERSION" --no-git-tag-version - - - name: ๐Ÿ“ฆ Install dependencies & build - working-directory: action-repo - run: | - yarn install - yarn build - - - name: ๐Ÿงช Simulate commit and tag locally (no push) - working-directory: action-repo - run: | - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" - git add -A - - if git diff --cached --quiet; then - echo "No changes to commit in ${{ matrix.repo }}" - else - git commit -m "Update Nitro CLI to $VERSION" - fi - - git tag "v$VERSION" --force - echo "Created local test tag v$VERSION for ${{ matrix.repo }}" - - - name: ๐Ÿ“‹ Show resulting status - working-directory: action-repo + - name: ๐Ÿš€ Trigger action repository update workflow + env: + GH_TOKEN: ${{ steps.app-token.outputs.token }} run: | - git status --short - git log -1 --oneline - git tag --list "v$VERSION" + gh api --method POST \ + "/repos/ChilliCream/${{ matrix.repo }}/dispatches" \ + -f event_type=update-from-platform \ + -f client_payload[version]="$VERSION" From 25717541fe1dcf446a9fce93ae4b88369179943e Mon Sep 17 00:00:00 2001 From: tobias-tengler <45513122+tobias-tengler@users.noreply.github.com> Date: Thu, 26 Mar 2026 12:57:52 +0100 Subject: [PATCH 09/14] Move App ID to secrets.ACTIONS_APP_ID --- .github/workflows/release.yml | 2 +- .github/workflows/test-update-github-actions.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 625dc22d42c..ec964f95997 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -484,7 +484,7 @@ jobs: id: app-token uses: actions/create-github-app-token@v2 with: - app-id: ${{ vars.ACTIONS_APP_ID }} + app-id: ${{ secrets.ACTIONS_APP_ID }} private-key: ${{ secrets.ACTIONS_APP_PRIVATE_KEY }} owner: ChilliCream repositories: ${{ matrix.repo }} diff --git a/.github/workflows/test-update-github-actions.yml b/.github/workflows/test-update-github-actions.yml index 2f2ae1a50ba..429bc6e4620 100644 --- a/.github/workflows/test-update-github-actions.yml +++ b/.github/workflows/test-update-github-actions.yml @@ -25,7 +25,7 @@ jobs: id: app-token uses: actions/create-github-app-token@v2 with: - app-id: ${{ vars.ACTIONS_APP_ID }} + app-id: ${{ secrets.ACTIONS_APP_ID }} private-key: ${{ secrets.ACTIONS_APP_PRIVATE_KEY }} owner: ChilliCream repositories: ${{ matrix.repo }} From 286656ffbe8e55dd72b566ee8b8eb0f11aa14296 Mon Sep 17 00:00:00 2001 From: tobias-tengler <45513122+tobias-tengler@users.noreply.github.com> Date: Thu, 26 Mar 2026 14:24:37 +0100 Subject: [PATCH 10/14] Retrigger CI From 65c807d4f8da6415e11533026e0dea330a77c9e2 Mon Sep 17 00:00:00 2001 From: tobias-tengler <45513122+tobias-tengler@users.noreply.github.com> Date: Thu, 26 Mar 2026 14:54:42 +0100 Subject: [PATCH 11/14] Retrigger CI From bd3ae54e7fac15b3533257eb2639396135192f1c Mon Sep 17 00:00:00 2001 From: tobias-tengler <45513122+tobias-tengler@users.noreply.github.com> Date: Thu, 26 Mar 2026 15:00:49 +0100 Subject: [PATCH 12/14] Retrigger CI From 06e8542977eb6621213d044370e977897b63e4d9 Mon Sep 17 00:00:00 2001 From: tobias-tengler <45513122+tobias-tengler@users.noreply.github.com> Date: Thu, 26 Mar 2026 15:08:07 +0100 Subject: [PATCH 13/14] Retrigger CI From 520d620755d7d587509151d58772702cf3f28362 Mon Sep 17 00:00:00 2001 From: tobias-tengler <45513122+tobias-tengler@users.noreply.github.com> Date: Thu, 26 Mar 2026 15:09:33 +0100 Subject: [PATCH 14/14] Remove test workflow --- .../workflows/test-update-github-actions.yml | 40 ------------------- 1 file changed, 40 deletions(-) delete mode 100644 .github/workflows/test-update-github-actions.yml diff --git a/.github/workflows/test-update-github-actions.yml b/.github/workflows/test-update-github-actions.yml deleted file mode 100644 index 429bc6e4620..00000000000 --- a/.github/workflows/test-update-github-actions.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: ๐Ÿงช Test Update GitHub Actions - -on: - workflow_dispatch: - pull_request: - -permissions: - contents: read - -jobs: - update-github-actions-test: - name: ๐Ÿ”„ Test update (${{ matrix.repo }}) - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - repo: - - nitro-fusion-upload - - env: - VERSION: 16.0.0-rc.1.15 - - steps: - - name: ๐Ÿ” Create GitHub App token - id: app-token - uses: actions/create-github-app-token@v2 - with: - app-id: ${{ secrets.ACTIONS_APP_ID }} - private-key: ${{ secrets.ACTIONS_APP_PRIVATE_KEY }} - owner: ChilliCream - repositories: ${{ matrix.repo }} - - - name: ๐Ÿš€ Trigger action repository update workflow - env: - GH_TOKEN: ${{ steps.app-token.outputs.token }} - run: | - gh api --method POST \ - "/repos/ChilliCream/${{ matrix.repo }}/dispatches" \ - -f event_type=update-from-platform \ - -f client_payload[version]="$VERSION"