ci: auto release canary on success (#7444)

Automatically release canary on successful workflow.
This commit is contained in:
Elliot DeNolf
2024-07-31 00:11:28 -04:00
committed by GitHub
parent febd7f7073
commit ba6ef6777f
2 changed files with 44 additions and 14 deletions

View File

@@ -2,24 +2,12 @@ import type { ExecSyncOptions } from 'child_process'
import type execa from 'execa'
import chalk from 'chalk'
import { loadChangelogConfig } from 'changelogen'
import { execSync } from 'child_process'
import fse from 'fs-extra'
import minimist from 'minimist'
import { fileURLToPath } from 'node:url'
import pLimit from 'p-limit'
import path from 'path'
import prompts from 'prompts'
import semver from 'semver'
import type { PackageDetails } from './lib/getPackageDetails.js'
import { getPackageDetails } from './lib/getPackageDetails.js'
import { getPackageRegistryVersions } from './lib/getPackageRegistryVersions.js'
import { getWorkspace } from './lib/getWorkspace.js'
import { packagePublishList } from './lib/publishList.js'
import { getRecommendedBump } from './utils/getRecommendedBump.js'
import { updateChangelog } from './utils/updateChangelog.js'
const npmPublishLimit = pLimit(5)
@@ -43,8 +31,6 @@ const args = minimist(process.argv.slice(2))
const dryRun = true
const logPrefix = dryRun ? chalk.bold.magenta('[dry-run] >') : ''
async function main() {
const workspace = await getWorkspace()
await workspace.bumpVersion('canary')