Skip to content

Commit

Permalink
test release 11 (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelangeloio authored Nov 7, 2023
1 parent 3abe684 commit a339555
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/auto/crate-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { readdir, readFile, writeFile } from 'fs/promises'
import { join, resolve } from 'path'
import { inc, ReleaseType } from 'semver'
import { parse as parseToml } from 'toml'
import { inspect } from 'util'
/** Get the parsed cargo.toml for the crate */
export const getCargoConfig = async () => {
const content = (await readFile(join(process.cwd() || process.env.GITHUB_WORKSPACE || '', 'Cargo.toml'))).toString()
Expand All @@ -23,7 +24,7 @@ export async function getWorkspaceMembers(): Promise<
> {
const { toml } = await getCargoConfig()
console.log('\x1b[36m%s\x1b[0m', 'testing', toml)
return toml.workspace.members.map(async (member: string) => {
const members = await Promise.all(toml.workspace.members.map(async (member: string) => {
console.log('\x1b[36m%s\x1b[0m', process.env.GITHUB_WORKSPACE, process.cwd())
const files = await readdir(process.env.GITHUB_WORKSPACE || '');
console.log('\x1b[36m%s\x1b[0m', process.env.GITHUB_WORKSPACE )
Expand Down Expand Up @@ -57,7 +58,9 @@ export async function getWorkspaceMembers(): Promise<
packageToml,
packageContent,
}
})
}))
console.log('\x1b[36m%s\x1b[0m', inspect(members))
return members
}

/** Bump the version in cargo.toml */
Expand Down

0 comments on commit a339555

Please sign in to comment.