Skip to content

Commit 5c328e7

Browse files
JounQinwooorm
andauthored
docs: add CONTRIBUTING documentation for releasing specifically (#141)
* docs: add CONTRIBUTING documentation for releasing specifically * Update CONTRIBUTING.md Co-Authored-By: Titus <[email protected]> Co-authored-by: Titus <[email protected]>
1 parent 88e3288 commit 5c328e7

File tree

3 files changed

+1013
-865
lines changed

3 files changed

+1013
-865
lines changed

CONTRIBUTING.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Contributing
2+
3+
Hi! 👋 We’re excited that you’re interested in contributing!
4+
5+
## Core Guidelines
6+
7+
[Read the guidelines on the MDX website][contributing]
8+
9+
## Packages Releasing Difference
10+
11+
This project is a [lerna][] monorepo, so packages releasing is controlled by [lerna][].
12+
13+
1. Make sure you have both GitHub repository and npm write permissions at the same time.
14+
2. You need a GitHub token with a `public_repo` scope as `GH_TOKEN` in the
15+
environment to publish
16+
3. Run `yarn deploy` simply, or `GH_TOKEN=xxx yarn deploy` to export `GH_TOKEN` at one time.
17+
18+
[contributing]: https://mdxjs.com/contributing
19+
[lerna]: https://github.com/lerna/lerna

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@
1414
"build:r": "r",
1515
"build:ts": "tsc -b",
1616
"clean": "rimraf packages/*/{lib,*.tsbuildinfo}",
17+
"deploy": "lerna publish --create-release github --yes",
1718
"lint": "run-p lint:*",
1819
"lint:es": "cross-env PARSER_NO_WATCH=true eslint . --cache --ext js,md,ts -f friendly",
1920
"lint:ts": "tslint -p . -t stylish",
2021
"lint:tsc": "tsc --incremental --noEmit",
22+
"predeploy": "yarn build",
2123
"prelint": "yarn build",
22-
"prepublishOnly": "yarn build",
2324
"pretest": "yarn clean",
24-
"publish": "lerna publish --create-release github --yes",
2525
"test": "ts-node --skip-ignore node_modules/.bin/jest",
2626
"type-coverage": "type-coverage --cache --detail --ignore-catch --ignore-files *.d.ts --strict"
2727
},
2828
"devDependencies": {
29-
"@1stg/lib-config": "^0.1.19",
30-
"@1stg/tslint-config": "^0.5.8",
29+
"@1stg/lib-config": "^0.1.20",
30+
"@1stg/tslint-config": "^0.5.9",
3131
"@types/eslint": "^6.1.7",
3232
"@types/jest": "^24.9.1",
3333
"@types/node": "^13.5.0",

0 commit comments

Comments
 (0)