Skip to content

Commit

Permalink
🧹 chore: add config to support github release
Browse files Browse the repository at this point in the history
  • Loading branch information
stanleyugwu committed Oct 9, 2023
1 parent c02bcec commit 865a113
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ node_modules/
npm-debug.log
yarn-debug.log
yarn-error.log
.env

# BUCK
buck-out/
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"build-dts": "tsc --project tsconfig.build.json",
"copy-dts": "xcopy /S /Y \"src\\*.d.ts\" \"lib\\typescript\"",
"prepack": "yarn del-build-dir && yarn build-dts && yarn copy-dts && bob build",
"release": "yarn prepack && release-it",
"release": "yarn prepack && dotenv release-it --",
"example": "yarn --cwd example",
"bootstrap": "yarn example && yarn install"
},
Expand Down Expand Up @@ -59,6 +59,7 @@
"@types/react-native": "0.70.0",
"commitlint": "^17.0.2",
"del-cli": "^5.0.0",
"dotenv-cli": "^7.3.0",
"eslint": "^8.4.1",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
Expand Down Expand Up @@ -103,7 +104,8 @@
"publish": true
},
"github": {
"release": true
"release": true,
"releaseNotes": "git log --no-merges --pretty=format:\"* %s %h\" ${latestTag}...main"
},
"plugins": {
"@release-it/conventional-changelog": {
Expand Down
20 changes: 20 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4001,6 +4001,26 @@ dot-prop@^6.0.1:
dependencies:
is-obj "^2.0.0"

dotenv-cli@^7.3.0:
version "7.3.0"
resolved "https://registry.yarnpkg.com/dotenv-cli/-/dotenv-cli-7.3.0.tgz#21e33e7944713001677658d68856063968edfbd2"
integrity sha512-314CA4TyK34YEJ6ntBf80eUY+t1XaFLyem1k9P0sX1gn30qThZ5qZr/ZwE318gEnzyYP9yj9HJk6SqwE0upkfw==
dependencies:
cross-spawn "^7.0.3"
dotenv "^16.3.0"
dotenv-expand "^10.0.0"
minimist "^1.2.6"

dotenv-expand@^10.0.0:
version "10.0.0"
resolved "https://registry.yarnpkg.com/dotenv-expand/-/dotenv-expand-10.0.0.tgz#12605d00fb0af6d0a592e6558585784032e4ef37"
integrity sha512-GopVGCpVS1UKH75VKHGuQFqS1Gusej0z4FyQkPdwjil2gNIv+LNsqBlboOzpJFZKVT95GkCyWJbBSdFEFUWI2A==

dotenv@^16.3.0:
version "16.3.1"
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.3.1.tgz#369034de7d7e5b120972693352a3bf112172cc3e"
integrity sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==

eastasianwidth@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/eastasianwidth/-/eastasianwidth-0.2.0.tgz#696ce2ec0aa0e6ea93a397ffcf24aa7840c827cb"
Expand Down

0 comments on commit 865a113

Please sign in to comment.