Skip to content
This repository has been archived by the owner on May 8, 2023. It is now read-only.

Commit

Permalink
chore: Auto publish github release logs (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xShisui authored Mar 10, 2022
1 parent bf3ccf3 commit 32df5c7
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 3 deletions.
1 change: 1 addition & 0 deletions .env.template
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GITHUB_TOKEN=
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ dist
# misc
.DS_Store
*.pem
.env

# debug
npm-debug.log*
Expand Down
3 changes: 2 additions & 1 deletion .release-it.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require("dotenv").config();

// Doc: https://github.com/release-it/release-it
module.exports = {
git: {
Expand All @@ -9,6 +11,5 @@ module.exports = {
},
github: {
release: true,
web: true,
},
};
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ Configs, types, and functions used to interact with Looksrare.

## Release

- `yarn release` will run all the checks, build, and publish the package. You just need to manually validate the version.
- Make sure you save git git change the Github release
- Create a [Personal access token](https://github.com/settings/tokens/new?scopes=repo&description=release-it) (Don't change the defautl scope)
- Create an `.env` (copy `.env.template`) and set you github personal access token.
- `yarn release` will run all the checks, build, and publish the package, and publish the github release note.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,8 @@
"release-it": "^14.12.5",
"rollup": "^2.69.0",
"typescript": "^4.6.2"
},
"dependencies": {
"dotenv": "^16.0.0"
}
}
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1496,6 +1496,11 @@ dot-prop@^5.1.0, dot-prop@^5.2.0:
dependencies:
is-obj "^2.0.0"

dotenv@^16.0.0:
version "16.0.0"
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.0.0.tgz#c619001253be89ebb638d027b609c75c26e47411"
integrity sha512-qD9WU0MPM4SWLPJy/r2Be+2WgQj8plChsyrCNQzW/0WjvcJQiKQJ9mH3ZgB3fxbUUxgc/11ZJ0Fi5KiimWGz2Q==

duplexer3@^0.1.4:
version "0.1.4"
resolved "https://registry.yarnpkg.com/duplexer3/-/duplexer3-0.1.4.tgz#ee01dd1cac0ed3cbc7fdbea37dc0a8f1ce002ce2"
Expand Down

0 comments on commit 32df5c7

Please sign in to comment.