diff --git a/.env.template b/.env.template new file mode 100644 index 0000000..3b926cd --- /dev/null +++ b/.env.template @@ -0,0 +1 @@ +GITHUB_TOKEN= diff --git a/.gitignore b/.gitignore index 04a9968..a9e3d93 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ dist # misc .DS_Store *.pem +.env # debug npm-debug.log* diff --git a/.release-it.js b/.release-it.js index e557cf8..10af751 100644 --- a/.release-it.js +++ b/.release-it.js @@ -1,3 +1,5 @@ +require("dotenv").config(); + // Doc: https://github.com/release-it/release-it module.exports = { git: { @@ -9,6 +11,5 @@ module.exports = { }, github: { release: true, - web: true, }, }; diff --git a/README.md b/README.md index 10095ea..f3b2231 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/package.json b/package.json index 648cc0a..cc4abf7 100644 --- a/package.json +++ b/package.json @@ -43,5 +43,8 @@ "release-it": "^14.12.5", "rollup": "^2.69.0", "typescript": "^4.6.2" + }, + "dependencies": { + "dotenv": "^16.0.0" } } diff --git a/yarn.lock b/yarn.lock index 2f7858d..7b3c118 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"