Skip to content

Commit bc8fdfb

Browse files
committed
chore: add a release-dry-run script
1 parent 0d39aeb commit bc8fdfb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,7 @@ npm run format
423423
npm run coverage
424424
npm run build
425425
npm run build-and-test
426+
npm run release-dry-run
426427
```
427428

428429
Note that a new package is published on [npm](https://www.npmjs.com/package/@jsonquerylang/jsonquery) and [GitHub](https://github.com/jsonquerylang/jsonquery/releases) on changes pushed to the `main` branch. This is done using [`semantic-release`](https://github.com/semantic-release/semantic-release), and we do not use the `version` number in the `package.json` file. A changelog can be found by looking at the [releases on GitHub](https://github.com/jsonquerylang/jsonquery/releases).

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@
5050
"format:readme": "prettier README.md --write --ignore-path notneeded",
5151
"build-and-test": "npm-run-all test-ci lint build",
5252
"prepublishOnly": "npm run build-and-test",
53-
"release": "semantic-release"
53+
"release": "semantic-release",
54+
"release-dry-run": "semantic-release --dry-run --plugins \"@semantic-release/commit-analyzer\""
5455
},
5556
"devDependencies": {
5657
"@biomejs/biome": "1.9.4",

0 commit comments

Comments
 (0)