Skip to content

Commit

Permalink
Tune release flow
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasrw committed Aug 15, 2024
1 parent bc8cdfa commit 54fdda3
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,15 @@
"test-cli": "npm uninstall -g rexreplace && npm -g install ./ && yarn test-cli-only",
"test-cli-only": "bash test/cli/run.sh",
"test-speed": "bash test/speed/run.sh",
"#prepublishOnly": "yarn is-git-clean && git fetch && git rebase origin/main && yarn test-minify && yarn load-options ",
"#postpublish": "git push --tag && git push && (open https://github.com/mathiasrw/rexreplace/releases || 1)",
"load-options": "rr -h | rr 'Options:(.+)Examples:' _ -ms | rr '\\n {26,}|\\n\\n *' ' ' | rr \"'\" '`' | rr '^ (-.+?), (--[^ ]+) *' '`€1` | **`€2`** ' | rr '(^---- . ----).+?(## Good to know)' '€1 + nl + pipe + nl + nl + €2' readme.md -jsT",
"test-format": "yarn prettier --list-different || (echo 'Please correct file formatting using `yarn format` and try again.' && exit 1)",
"format": "yarn prettier --write",
"prettier": "prettier .",
"#prepublishOnly": "#yarn is-git-clean && git fetch && git rebase origin/main && yarn test-minify && yarn load-options ",
"#postpublish": "#git push --tag && git push && (open https://github.com/mathiasrw/rexreplace/releases || 1)",
"load-options": "#rr -h | rr 'Options:(.+)Examples:' _ -ms | rr '\\n {26,}|\\n\\n *' ' ' | rr \"'\" '`' | rr '^ (-.+?), (--[^ ]+) *' '`€1` | **`€2`** ' | rr '(^---- . ----).+?(## Good to know)' '€1 + nl + pipe + nl + nl + €2' readme.md -jsT",
"test-format": "prettier . --list-different || (echo 'Please correct file formatting using `yarn format` and try again.' && exit 1)",
"format": "prettier . --write",
"is-git-clean": "(git diff --quiet --exit-code --cached && git diff --quiet --exit-code) || (echo Please commit or stash changes && exit 1)",
"preversion": "yarn && yarn test-minify && yarn load-options",
"postversion": "echo npm publish && git push && git push --tags && echo \"Successfully released version $npm_package_version\"",
"release": "yarn version"
"release": "yarn version",
"prerelease": "yarn is-git-clean && yarn test-minify && yarn load-options",
"postrelease": "echo npm publish && git push && git push --tags && echo \"Successfully released version $npm_package_version\""
},
"keywords": [
"search",
Expand Down

0 comments on commit 54fdda3

Please sign in to comment.