Skip to content

Commit

Permalink
fix: ci logic
Browse files Browse the repository at this point in the history
  • Loading branch information
i7eo committed Jun 27, 2024
1 parent 548df08 commit dad7a41
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions packages/changeset-config/src/generate-releases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,6 @@ export async function changesetsGenerateReleases(
const octokit = new Octokit({
auth: `token ${env.GITHUB_TOKEN}`,
})
// eslint-disable-next-line no-console
console.log('Github Action Env:', JSON.stringify(env))

// Run changesets publish first and get stdout
const publishCommandOutput = execSync('pnpm changeset publish').toString()
Expand All @@ -124,7 +122,7 @@ export async function changesetsGenerateReleases(
)

// Push updated packages to github with tags
const gitPushCommand = `git pull && git add . && git diff --staged --quiet || git commit -m "docs: 📝 add changelogs for $(git rev-parse --short HEAD) [skip ci]" && git push origin ${env.GIT_BRANCH} --follow-tags`
const gitPushCommand = `git pull && git add . && git diff --staged --quiet || git commit -m "docs: 📝 add changelogs for $(git rev-parse --short HEAD) [skip ci]" && git push origin ${env.GITHUB_BRANCH} --follow-tags`
const gitPushCommandOutput = execSync(gitPushCommand).toString()
// eslint-disable-next-line no-console
console.log(
Expand Down
2 changes: 0 additions & 2 deletions packages/github/src/contributor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,6 @@ async function main() {

if (!isDistExist) await mkdir(resolve(__dirname, '../dist'))

// eslint-disable-next-line no-console
console.log('Github Action Env:', JSON.stringify(process.env))
if (process.env.DEV) {
contributors = {}
} else {
Expand Down

0 comments on commit dad7a41

Please sign in to comment.