https://github.com/riskers/single-bootstrap-template
manage NPM package version with semtic-release Action
https://github.com/riskers/single-bootstrap-template
husky lintstaged multirepo pnpm semantic-release
Last synced: about 1 month ago
JSON representation
manage NPM package version with semtic-release Action
- Host: GitHub
- URL: https://github.com/riskers/single-bootstrap-template
- Owner: riskers
- Created: 2023-03-25T15:41:28.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-08T02:31:51.000Z (over 2 years ago)
- Last Synced: 2025-02-24T16:50:13.331Z (8 months ago)
- Topics: husky, lintstaged, multirepo, pnpm, semantic-release
- Language: JavaScript
- Homepage: https://riskers.notion.site/single-repo-semtanic-release-CI-b238e63543d0416ab03501868f1e4156
- Size: 90.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# single bootstrap template
[NPM Example](https://www.npmjs.com/package/single-bootstrap-template)
## Lint and Format
* [ESLint](https://eslint.org/): [config](./.eslintrc.js)
* [Prettier](https://prettier.io/): [config](./.prettierrc.js)## Limit package management
Limit the types of package management Strictly (default [PNPM](https://pnpm.io/)).
If you want to modify, you can change the `engines` field in [package.json](./package.json).
## Husky
If [husky](https://github.com/typicode/husky) not works:
```bash
chmod ug+x .husky/*
chmod ug+x .git/hooks/*
```> reference [stackoverflow](https://stackoverflow.com/questions/8598639/why-is-my-git-pre-commit-hook-not-executable-by-default)
## Commitlint
[commitlint](https://github.com/conventional-changelog/commitlint) will check commit message before you commit.
[rules](./.commitlintrc.js)
## Release NPM package on Github Action
1. Change npm's `name` in [package.json](./package.json).
2. Apply `NPM_TOKEN` and fill in your repo's secrets:

3. Auto publish package by [semantic-release](https://github.com/semantic-release/semantic-release) on [Github Action](./.github/workflows/release.yaml).