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 <chaikohen@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Jiralite
2025-07-27 11:53:48 +01:00
committed by GitHub
parent 08a61ca8e3
commit c0c1ac2879
3 changed files with 10 additions and 8 deletions

View File

@@ -23,6 +23,7 @@ on:
- '@discordjs/next' - '@discordjs/next'
- '@discordjs/proxy' - '@discordjs/proxy'
- '@discordjs/rest' - '@discordjs/rest'
- '@discordjs/structures'
- '@discordjs/util' - '@discordjs/util'
- '@discordjs/voice' - '@discordjs/voice'
- '@discordjs/ws' - '@discordjs/ws'
@@ -32,6 +33,7 @@ on:
type: string type: string
default: '@discordjs/docgen,@discordjs/next' default: '@discordjs/docgen,@discordjs/next'
dry_run: dry_run:
description: Perform a dry run?
type: boolean type: boolean
default: false default: false
jobs: jobs:
@@ -50,12 +52,12 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
ref: ${{ inputs.ref || '' }} 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 uses: actions/setup-node@v4
with: with:
node-version: 20 node-version: 22
registry-url: https://registry.npmjs.org/ registry-url: https://registry.npmjs.org/
- name: Install dependencies - name: Install dependencies

View File

@@ -3,10 +3,10 @@ description: 'Tags and releases any unreleased packages'
inputs: inputs:
dev: dev:
description: 'Releases development versions of packages (skips tagging and github releases)' description: 'Releases development versions of packages (skips tagging and github releases)'
default: false default: 'false'
dry: dry:
descrption: 'Perform a dry run that skips publishing and outputs logs indicating what would have happened' description: 'Perform a dry run that skips publishing and outputs logs indicating what would have happened'
default: false default: 'false'
package: package:
description: 'The published name of a single package to release' description: 'The published name of a single package to release'
exclude: exclude:
@@ -14,7 +14,7 @@ inputs:
runs: runs:
using: composite using: composite
steps: steps:
- uses: oven-sh/setup-bun@v1 - uses: oven-sh/setup-bun@v2
- run: bun packages/actions/src/releasePackages/index.ts - run: bun packages/actions/src/releasePackages/index.ts
shell: bash shell: bash
env: env:

View File

@@ -73,7 +73,7 @@ async function getReleaseEntries(dev: boolean, dry: boolean) {
info(`[DRY] Bumping ${pkg.name} via git-cliff.`); info(`[DRY] Bumping ${pkg.name} via git-cliff.`);
release.version = `${pkg.version}.DRY-dev.${Math.round(Date.now() / 1_000)}-${commitHash}`; release.version = `${pkg.version}.DRY-dev.${Math.round(Date.now() / 1_000)}-${commitHash}`;
} else { } 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 // 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; const pkgJson = (await file(`${pkg.path}/package.json`).json()) as PackageJSON;
release.version = pkgJson.version; release.version = pkgJson.version;