Skip to content

Commit

Permalink
feat: still bump version if it fail (#29)
Browse files Browse the repository at this point in the history
LGFM
  • Loading branch information
khoilen authored Jan 7, 2025
1 parent 59955ec commit 2604ee7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
- name: bump version
run: pnpm version ${{ github.event.inputs.version }}
working-directory: apps/nt-stylesheet
continue-on-error: true

- name: Push latest version
run: git push origin main --follow-tags
2 changes: 1 addition & 1 deletion lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
'{apps}/**/*.{js,ts,jsx,tsx,json,css,scss,md}': (files) => {
'**/*.{js,ts,jsx,tsx,json,css,scss,md}': (files) => {
return [
`prettier --write ${files.join(' ')}`,
`pnpm eslint . --fix`,
Expand Down
12 changes: 9 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.js",
"packageManager": "[email protected]",
"engines": {
"node": "20"
"node": ">= 20"
},
"keywords": [],
"author": "Nashtech",
Expand Down Expand Up @@ -35,7 +35,8 @@
"apps/*"
],
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"postinstall": "husky install"
},
"repository": {
"type": "git",
Expand All @@ -44,5 +45,10 @@
"bugs": {
"url": "https://github.com/nashtech-garage/nt-sketchbook/issues"
},
"homepage": "https://github.com/nashtech-garage/nt-sketchbook#readme"
"homepage": "https://github.com/nashtech-garage/nt-sketchbook#readme",
"husky": {
"hooks": {
"pre-commit": "npx lint-staged"
}
}
}

0 comments on commit 2604ee7

Please sign in to comment.