mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
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:
@@ -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:
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user