From c0c1ac2879e327c514ada736036dec06a858afc4 Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Sun, 27 Jul 2025 11:53:48 +0100 Subject: [PATCH] ci(release): Miscellaneous fixes (#11014) * ci: some fixes * ci: typo in property * fix: yaml-schema errors * ci: oven-sh/setup-bun@v2 * ci: typo in dev release --------- Co-authored-by: ckohen Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 8 +++++--- packages/actions/src/releasePackages/action.yml | 8 ++++---- .../actions/src/releasePackages/generateReleaseTree.ts | 2 +- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 55f5134c1..3dd6d1c06 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,6 +23,7 @@ on: - '@discordjs/next' - '@discordjs/proxy' - '@discordjs/rest' + - '@discordjs/structures' - '@discordjs/util' - '@discordjs/voice' - '@discordjs/ws' @@ -32,6 +33,7 @@ on: type: string default: '@discordjs/docgen,@discordjs/next' dry_run: + description: Perform a dry run? type: boolean default: false jobs: @@ -50,12 +52,12 @@ jobs: uses: actions/checkout@v4 with: ref: ${{ inputs.ref || '' }} - ssh_key: ${{ secrets.DEPLOY_KEY_CI_RELEASE_TAGS }} + ssh-key: ${{ secrets.DEPLOY_KEY_CI_RELEASE_TAGS }} - - name: Install Node.js v20 + - name: Install Node.js v22 uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 registry-url: https://registry.npmjs.org/ - name: Install dependencies diff --git a/packages/actions/src/releasePackages/action.yml b/packages/actions/src/releasePackages/action.yml index d25bd849b..dd4daeb84 100644 --- a/packages/actions/src/releasePackages/action.yml +++ b/packages/actions/src/releasePackages/action.yml @@ -3,10 +3,10 @@ description: 'Tags and releases any unreleased packages' inputs: dev: description: 'Releases development versions of packages (skips tagging and github releases)' - default: false + default: 'false' dry: - descrption: 'Perform a dry run that skips publishing and outputs logs indicating what would have happened' - default: false + description: 'Perform a dry run that skips publishing and outputs logs indicating what would have happened' + default: 'false' package: description: 'The published name of a single package to release' exclude: @@ -14,7 +14,7 @@ inputs: runs: using: composite steps: - - uses: oven-sh/setup-bun@v1 + - uses: oven-sh/setup-bun@v2 - run: bun packages/actions/src/releasePackages/index.ts shell: bash env: diff --git a/packages/actions/src/releasePackages/generateReleaseTree.ts b/packages/actions/src/releasePackages/generateReleaseTree.ts index 4e52bdf17..5b2182d45 100644 --- a/packages/actions/src/releasePackages/generateReleaseTree.ts +++ b/packages/actions/src/releasePackages/generateReleaseTree.ts @@ -73,7 +73,7 @@ async function getReleaseEntries(dev: boolean, dry: boolean) { info(`[DRY] Bumping ${pkg.name} via git-cliff.`); release.version = `${pkg.version}.DRY-dev.${Math.round(Date.now() / 1_000)}-${commitHash}`; } else { - await $`pnpm --filter=${pkg.name} run release --preid "dev.${Math.round(Date.now() / 1_000)}-${commitHash} --skip-changelog"`; + await $`pnpm --filter=${pkg.name} run release --preid "dev.${Math.round(Date.now() / 1_000)}-${commitHash}" --skip-changelog`; // Read again instead of parsing the output to be sure we're matching when checking against npm const pkgJson = (await file(`${pkg.path}/package.json`).json()) as PackageJSON; release.version = pkgJson.version;