GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chore: Add release script · lerna/lerna@e00779a

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .env.example
  • .gitignore
  • CONTRIBUTING.md
  • lerna.json
  • package-lock.json
  • package.json
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.env.example‎

Copy file name to clipboard
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# GitHub token with "public_repo" scope required for --create-release=github
2+
# @see https://github.com/settings/tokens
3+
GH_TOKEN=REPLACEME
Collapse file

‎.gitignore‎

Copy file name to clipboardExpand all lines: .gitignore
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ tmp
2929
coverage/
3030
.nyc_output/
3131
.eslintcache
32+
.env
Collapse file

‎CONTRIBUTING.md‎

Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+14Lines changed: 14 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,17 @@ $ xdg-open coverage/lcov-report/index.html
110110
### Submitting Pull Requests
111111

112112
This project follows [GitHub's standard forking model](https://guides.github.com/activities/forking/). Please fork the project to submit pull requests.
113+
114+
### Releasing
115+
116+
If you are a member of Lerna's [GitHub org](https://github.com/orgs/lerna/people) and have read-write privileges in Lerna's [npm org](https://www.npmjs.com/org/lerna) _with 2-factor auth enabled_, congratulations, you can cut a release!
117+
118+
You'll need to set up a local `.env` file in the repo root to provide the required environment variables.
119+
The `.env.example` file is available in the root as a template.
120+
The root `.env` file is _never_ placed under version control.
121+
122+
Once that's done, run the release script and await glory:
123+
124+
```sh
125+
npm run release
126+
```
Collapse file

‎lerna.json‎

Copy file name to clipboardExpand all lines: lerna.json
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"version": {
88
"allowBranch": "main",
99
"conventionalCommits": true,
10+
"createRelease": "github",
1011
"exact": true,
1112
"message": "chore(release): %s"
1213
}
Collapse file

‎package-lock.json‎

Copy file name to clipboardExpand all lines: package-lock.json
+42Lines changed: 42 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎package.json‎

Copy file name to clipboardExpand all lines: package.json
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
"utils/*"
1010
],
1111
"scripts": {
12+
"prerelease": "npm test && npm run integration",
13+
"release": "env-cmd lerna version",
14+
"postversion": "lerna publish from-git",
1215
"ci": "npm test -- --ci --maxWorkers=2 && npm run integration -- --ci",
1316
"ci:test:unit": "jest --config jest.config.js --maxWorkers=2 --ci",
1417
"ci:test:integration": "jest --config jest.integration.js --maxWorkers=2 --ci",
@@ -129,6 +132,7 @@
129132
"@lerna-test/silence-logging": "file:helpers/silence-logging",
130133
"@lerna-test/update-lerna-config": "file:helpers/update-lerna-config",
131134
"debug": "^4.3.1",
135+
"env-cmd": "^10.1.0",
132136
"eslint": "^7.19.0",
133137
"eslint-config-airbnb-base": "^14.2.1",
134138
"eslint-config-prettier": "^7.2.0",

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.