Skip to content

Commit 9198b8c

Browse files
committed
ci: pass gh_token to release version job
1 parent 5908fbc commit 9198b8c

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

.github/workflows/prepare-release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,15 @@ jobs:
6868
id: version
6969
env:
7070
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
71+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7172
SKIP_CHANGELOG: ${{ steps.changelog.outputs.skip }}
7273
run: |
7374
set -eo pipefail
75+
if [ "${SKIP_CHANGELOG}" = "1" ]; then
76+
echo "[release] Skipping release automation until v2.0.0 changelog is available."
77+
echo "skip=true" >> "$GITHUB_OUTPUT"
78+
exit 0
79+
fi
7480
pnpm run release:version > version.log 2>&1 || STATUS=$?
7581
cat version.log
7682
if [ -n "$STATUS" ]; then

scripts/release-version.mjs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,13 @@
11
import { spawnSync } from "node:child_process";
22

3-
const skipChangelog = process.env.SKIP_CHANGELOG === "1";
43
const args = [
54
"lerna",
65
"version",
76
"--yes",
87
"--no-commit-hooks",
98
];
109

11-
if (skipChangelog) {
12-
args.push("--no-changelog");
13-
console.log(
14-
"[release] Skipping automatic changelog generation for this run.",
15-
);
16-
} else {
17-
console.log(
18-
"[release] Using Conventional Commits to generate the changelog.",
19-
);
20-
}
10+
console.log("[release] Using Conventional Commits to generate the changelog.");
2111

2212
const result = spawnSync("pnpm", args, {
2313
stdio: "inherit",

0 commit comments

Comments
 (0)