Skip to content

Commit 054535c

Browse files
committed
chore: update release scripts so that github token is available
1 parent 5af2b54 commit 054535c

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

.gitignore

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# secrets for release
2-
.release.env
3-
41
# guidebook store mirror
52
/store
63

docs/release/README.md

+15-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,26 @@
11
# Publishing Production Builds
22

3-
1. Copy [release-template.conf](release-template.conf) to `.release.conf`
4-
at the top level, and update it with your secrets.
3+
## Gather Secrets
54

6-
2. Install dependencies:
5+
Copy [release-template.conf](release-template.conf) to
6+
`~/.codeflare-release.ebv` i.e. in your home directory, and update it
7+
with your secrets.
8+
9+
TODO explain how to get Apple code signing secrets.
10+
11+
## Install Dependencies
712

813
```shell
914
npm install -g release-it @release-it/conventional-changelog @release-it/bumper dotenv-cli
1015
```
1116

12-
3. Run `release-it`:
17+
# Release!
18+
19+
1. It is recommended that you do this from a fresh clone, so that no
20+
development artifacts find their way into a production build.
21+
2. Do not run `release-it` directly, instead use the npm script from
22+
the top level of this repository.
1323

1424
```shell
15-
release-it
25+
npm run release
1626
```

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "",
55
"main": "dist/headless/codeflare.min.js",
66
"scripts": {
7+
"release": "dotenv -e ~/.codeflare-release.env release-it --",
78
"watch:source": "tsc --build . --watch",
89
"compile": "npx tsc --build . && npx kui-babel && npx kui-prescan",
910
"compile:clean": "tsc --build tsconfig.json --clean",
@@ -89,7 +90,6 @@
8990
"release-it": {
9091
"hooks": {
9192
"before:release": [
92-
"if [ ! -f .release.env ]; then echo 'Missing .release.env. Copy and modify docs/release/release-template.env' exit 1; fi",
9393
"npm ci",
9494
"dotenv -e .release.env npm run build:electron:all"
9595
]

0 commit comments

Comments
 (0)