Skip to content

Commit

Permalink
updates build/publish scripts + documents steps to release
Browse files Browse the repository at this point in the history
  • Loading branch information
alexarena committed Nov 29, 2023
1 parent 77edaa5 commit a23e7f6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"migrate:prod": "prisma migrate deploy",
"build": "rm -rf dist && prisma generate && yarn server:build && yarn wss:build && yarn client:build",
"pkg": "./scripts/pkg.sh",
"pub": "./scripts/pub.sh",
"start": "NODE_ENV=production ./dist/src/entry.js",
"docker": "./scripts/docker-build.sh",
"client:build": "vite build",
Expand Down
6 changes: 6 additions & 0 deletions scripts/STEPS_TO_RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
1. `yarn install`
2. Bump version in `package.json` to new version number
3. `yarn build` compiles + type checks
4. `yarn pkg` creates a "release" folder w/ the contents of the npm package
5. `./pub.sh` publishes to npm registry. Note! This isn't a `yarn` command like the others because npm doesn't think you're logged in when running from the yarn script runner.
6. `yarn docker` creates a Docker image + publishes to the Docker registry
2 changes: 0 additions & 2 deletions scripts/pkg.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/bin/bash
set -e # Any subsequent(*) commands which fail will cause the shell script to exit immediately

yarn build

rm -rf release
mkdir release

Expand Down
1 change: 0 additions & 1 deletion scripts/pub.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/bash
set -e # Any subsequent(*) commands which fail will cause the shell script to exit immediately

./scripts/pkg.sh
npm publish ./release --access public

0 comments on commit a23e7f6

Please sign in to comment.