Skip to content

Commit

Permalink
ci: fix release notes check
Browse files Browse the repository at this point in the history
  • Loading branch information
soberhacker committed Jun 27, 2023
1 parent 3ffd07b commit 66c9a16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"lint-fix": "eslint --fix src/**/*.ts",
"version": "node version-bump.mjs && git add manifest.json versions.json",
"test": "node esbuild.config.mjs test && node install-plugin.mjs",
"checks": "npm run lint && node release-notes.mjs check",
"release-notes-check": "node release-notes.mjs check",
"checks": "npm run lint && npm run release-notes-check",
"build": "tsc -noEmit -skipLibCheck && npm run checks && node esbuild.config.mjs production"
},
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion release-notes.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ if (check) {
const packageVersion = process.env.npm_package_version;

if (packageVersion !== version) {
console.error("Failed! Release notes are outdated!");
console.error(`Failed! Release notes are outdated! ${packageVersion} !== ${version}`);
process.exit(1);
}
}

0 comments on commit 66c9a16

Please sign in to comment.