From 976394018829500137d0891fe54fca90a21723cd Mon Sep 17 00:00:00 2001 From: azu Date: Mon, 9 Jan 2023 20:04:28 +0900 Subject: [PATCH 1/2] CI: add .github/release.yml --- .github/release.yml | 30 ++++++++++++++++++++++++++++++ CHANGELOG.md | 12 ------------ 2 files changed, 30 insertions(+), 12 deletions(-) create mode 100644 .github/release.yml delete mode 100644 CHANGELOG.md diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 0000000..1928cc4 --- /dev/null +++ b/.github/release.yml @@ -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: ['*'] diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 69b9e6e..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,12 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. - - -## [1.0.4](https://github.com/azu/immutable-array-prototype/compare/v1.0.3...v1.0.4) (2018-03-22) - - - - -**Note:** Version bump only for package immutable-array-prototype From 2ff3002d038a1aa02e5a52246144cd913525c9b2 Mon Sep 17 00:00:00 2001 From: azu Date: Mon, 9 Jan 2023 20:04:42 +0900 Subject: [PATCH 2/2] chore: add release scripts --- README.md | 1 - package.json | 17 +++++++---------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 2f0106d..6be9540 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/package.json b/package.json index 136001b..177908f 100644 --- a/package.json +++ b/package.json @@ -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/*" @@ -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,