Skip to content

Add release scripts #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
changelog:
exclude:
labels:
- 'Type: Meta'
- 'Type: Question'
- 'Type: Release'

categories:
- title: Security Fixes
labels: ['Type: Security']
- title: Breaking Changes
labels: ['Type: Breaking Change']
- title: Features
labels: ['Type: Feature']
- title: Bug Fixes
labels: ['Type: Bug']
- title: Documentation
labels: ['Type: Documentation']
- title: Refactoring
labels: ['Type: Refactoring']
- title: Testing
labels: ['Type: Testing']
- title: Maintenance
labels: ['Type: Maintenance']
- title: CI
labels: ['Type: CI']
- title: Dependency Updates
labels: ['Type: Dependencies', "dependencies"]
- title: Other Changes
labels: ['*']
12 changes: 0 additions & 12 deletions CHANGELOG.md

This file was deleted.

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ See [Releases page](https://github.com/azu/immutable-array-prototype/releases).
Run following commands:

yarn install
yarn bootstrap
yarn test

## Contributing
Expand Down
17 changes: 7 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@
"description": "Immutable Array prototype methods.",
"main": "lib/immutable-array-prototype.js",
"scripts": {
"publish": "lerna publish --conventional-commits --concurrency 1",
"publish:beta": "lerna publish --npm-tag=beta --conventional-commits --concurrency 1",
"bootstrap": "lerna bootstrap",
"test": "yarn run build && jest",
"build": "lerna run build",
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,css}\"",
"prepare": "git config --local core.hooksPath .githooks"
"prepare": "git config --local core.hooksPath .githooks",
"versionup": "lerna version --no-push --no-git-tag-version",
"versionup:patch": "lerna version patch --no-push --no-git-tag-version",
"versionup:minor": "lerna version minor --no-push --no-git-tag-version",
"versionup:major": "lerna version major --no-push --no-git-tag-version",
"release": "lerna publish from-package",
"release-ci": "lerna publish from-package --yes"
},
"workspaces": [
"packages/*"
Expand Down Expand Up @@ -55,12 +58,6 @@
"ts-jest": "^29.0.3",
"typescript": "^4.9.4"
},
"husky": {
"hooks": {
"post-commit": "git reset",
"pre-commit": "lint-staged"
}
},
"prettier": {
"singleQuote": false,
"printWidth": 120,
Expand Down