Skip to content

Commit

Permalink
release test 4 (#9)
Browse files Browse the repository at this point in the history
* release test 3

* test release 4
  • Loading branch information
michaelangeloio authored Nov 7, 2023
1 parent 3ba5aa2 commit f314f1d
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 44 deletions.
17 changes: 2 additions & 15 deletions .github/auto/crate-plugin.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import { Auto, execPromise, IPlugin, SEMVER } from '@auto-it/core'
import { access, readFile, writeFile } from 'fs/promises'
import isCi from 'is-ci'
import { readFile, writeFile } from 'fs/promises'
import { join } from 'path'
import { inc, ReleaseType } from 'semver'
import { parse as parseToml } from 'toml'
import userHome from 'user-home'

/** 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 @@ -14,17 +11,7 @@ export const getCargoConfig = async () => {

/** Get the credentials for publishing to crates.io */
export async function checkForCreds() {
if (isCi) {
return process.env.CARGO_REGISTRY_TOKEN
}

const credsFile = join(userHome, '.cargo', 'credentials')
try {
await access(credsFile)
return true
} catch (error) {
return false
}
return process.env.CARGO_REGISTRY_TOKEN
}

export async function getWorkspaceMembers(): Promise<
Expand Down
Binary file modified bun.lockb
Binary file not shown.
28 changes: 0 additions & 28 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"esbuild": "^0.19.5",
"esbuild-plugin-copy": "^2.1.1",
"eslint": "^8.35.0",
"is-ci": "^3.0.1",
"mocha": "^9.2.1",
"semver": "^7.5.4",
"tsx": "^3.14.0",
Expand Down

0 comments on commit f314f1d

Please sign in to comment.