Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
quality:
name: Quality checks (Node ${{ matrix.node }})
runs-on: ubuntu-latest
runs-on: debian-latest
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [debian-latest, macos-latest, windows-latest]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
github.event.workflow_run.conclusion == 'success' &&
github.event.workflow_run.head_branch == 'master' &&
!startsWith(github.event.workflow_run.head_commit.message, 'chore(release)')
runs-on: ubuntu-latest
runs-on: debian-latest
permissions:
contents: write
steps:
Expand Down Expand Up @@ -68,9 +68,15 @@ jobs:
id: version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SKIP_CHANGELOG: ${{ steps.changelog.outputs.skip }}
run: |
set -eo pipefail
if [ "${SKIP_CHANGELOG}" = "1" ]; then
echo "[release] Skipping release automation until v2.0.0 changelog is available."
echo "skip=true" >> "$GITHUB_OUTPUT"
exit 0
fi
pnpm run release:version > version.log 2>&1 || STATUS=$?
cat version.log
if [ -n "$STATUS" ]; then
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
github.event.workflow_run.conclusion == 'success' &&
github.event.workflow_run.head_branch == 'master' &&
startsWith(github.event.workflow_run.head_commit.message, 'chore(release)')
runs-on: ubuntu-latest
runs-on: debian-latest
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
github.event.workflow_run.conclusion == 'success' &&
github.event.workflow_run.head_branch == 'master' &&
startsWith(github.event.workflow_run.head_commit.message, 'chore(release)')
runs-on: ubuntu-latest
runs-on: debian-latest
permissions:
contents: write
id-token: write
Expand Down
12 changes: 1 addition & 11 deletions scripts/release-version.mjs
Original file line number Diff line number Diff line change
@@ -1,23 +1,13 @@
import { spawnSync } from "node:child_process";

const skipChangelog = process.env.SKIP_CHANGELOG === "1";
const args = [
"lerna",
"version",
"--yes",
"--no-commit-hooks",
];

if (skipChangelog) {
args.push("--no-changelog");
console.log(
"[release] Skipping automatic changelog generation for this run.",
);
} else {
console.log(
"[release] Using Conventional Commits to generate the changelog.",
);
}
console.log("[release] Using Conventional Commits to generate the changelog.");

const result = spawnSync("pnpm", args, {
stdio: "inherit",
Expand Down
Loading