Skip to content

Commit 88ac796

Browse files
authored
docs: add release instructions (#289)
This PR adds instructions on how to make a release. It also runs `npm audit fix` to solve some dependency issues.
1 parent f9f1c37 commit 88ac796

File tree

3 files changed

+63
-22
lines changed

3 files changed

+63
-22
lines changed

RELEASE.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# How to release
2+
3+
To make a release:
4+
5+
- [ ] Make sure you have the latest changes on `main`:
6+
7+
```sh
8+
git checkout main && git pull origin main
9+
```
10+
11+
- [ ] Build the artifacts with:
12+
13+
```sh
14+
npm run build
15+
```
16+
17+
- [ ] Package the artifacts with the readme and license:
18+
19+
```sh
20+
tar -czvf gedusim.tar.gz examples/* dist/* README.md LICENSE
21+
```
22+
23+
- [ ] Create a new GitHub release with the packaged artifacts.
24+
25+
- [ ] Add information on how to run the release:
26+
27+
> To serve the files locally:
28+
>
29+
> 1. Download the compiled artifacts (`gedusim.tar.gz`).
30+
> 2. Extract the artifacts with `tar -xzf gedusim.tar.gz`.
31+
> 3. Serve the files under `dist/` through a web server, (i.e. [http-server](https://www.npmjs.com/package/http-server)).
32+
>
33+
> You'll now be able to use the simulator locally by going to `http://localhost:8080`

package-lock.json

Lines changed: 29 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"test": "jest",
3737
"start": "webpack serve --open --config webpack.dev.js",
3838
"start-host": "webpack serve --config webpack.dev.js --host 0.0.0.0",
39-
"build": "webpack --config webpack.prod.js",
39+
"build": "rm -rf dist/ && webpack --config webpack.prod.js",
4040
"format": "prettier . --write",
4141
"lint": "prettier . --check && eslint src/"
4242
},

0 commit comments

Comments
 (0)