Skip to content

Commit c0c1ac2

Browse files
Jiraliteckohenkodiakhq[bot]
authored
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 <[email protected]> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent 08a61ca commit c0c1ac2

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ on:
2323
- '@discordjs/next'
2424
- '@discordjs/proxy'
2525
- '@discordjs/rest'
26+
- '@discordjs/structures'
2627
- '@discordjs/util'
2728
- '@discordjs/voice'
2829
- '@discordjs/ws'
@@ -32,6 +33,7 @@ on:
3233
type: string
3334
default: '@discordjs/docgen,@discordjs/next'
3435
dry_run:
36+
description: Perform a dry run?
3537
type: boolean
3638
default: false
3739
jobs:
@@ -50,12 +52,12 @@ jobs:
5052
uses: actions/checkout@v4
5153
with:
5254
ref: ${{ inputs.ref || '' }}
53-
ssh_key: ${{ secrets.DEPLOY_KEY_CI_RELEASE_TAGS }}
55+
ssh-key: ${{ secrets.DEPLOY_KEY_CI_RELEASE_TAGS }}
5456

55-
- name: Install Node.js v20
57+
- name: Install Node.js v22
5658
uses: actions/setup-node@v4
5759
with:
58-
node-version: 20
60+
node-version: 22
5961
registry-url: https://registry.npmjs.org/
6062

6163
- name: Install dependencies

packages/actions/src/releasePackages/action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ description: 'Tags and releases any unreleased packages'
33
inputs:
44
dev:
55
description: 'Releases development versions of packages (skips tagging and github releases)'
6-
default: false
6+
default: 'false'
77
dry:
8-
descrption: 'Perform a dry run that skips publishing and outputs logs indicating what would have happened'
9-
default: false
8+
description: 'Perform a dry run that skips publishing and outputs logs indicating what would have happened'
9+
default: 'false'
1010
package:
1111
description: 'The published name of a single package to release'
1212
exclude:
1313
description: 'Comma separated list of packages to exclude from release (if not depended upon)'
1414
runs:
1515
using: composite
1616
steps:
17-
- uses: oven-sh/setup-bun@v1
17+
- uses: oven-sh/setup-bun@v2
1818
- run: bun packages/actions/src/releasePackages/index.ts
1919
shell: bash
2020
env:

packages/actions/src/releasePackages/generateReleaseTree.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ async function getReleaseEntries(dev: boolean, dry: boolean) {
7373
info(`[DRY] Bumping ${pkg.name} via git-cliff.`);
7474
release.version = `${pkg.version}.DRY-dev.${Math.round(Date.now() / 1_000)}-${commitHash}`;
7575
} else {
76-
await $`pnpm --filter=${pkg.name} run release --preid "dev.${Math.round(Date.now() / 1_000)}-${commitHash} --skip-changelog"`;
76+
await $`pnpm --filter=${pkg.name} run release --preid "dev.${Math.round(Date.now() / 1_000)}-${commitHash}" --skip-changelog`;
7777
// Read again instead of parsing the output to be sure we're matching when checking against npm
7878
const pkgJson = (await file(`${pkg.path}/package.json`).json()) as PackageJSON;
7979
release.version = pkgJson.version;

0 commit comments

Comments
 (0)