Compare commits
2 commits
dc1b87b87d
...
e634919e43
Author | SHA1 | Date | |
---|---|---|---|
e634919e43 | |||
597f750695 |
3 changed files with 18 additions and 2 deletions
|
@ -4,7 +4,6 @@ WORKDIR /app
|
|||
|
||||
# copy dependency list
|
||||
COPY package.json pnpm-lock.yaml run/entrypoint.sh ./
|
||||
COPY patches ./patches
|
||||
COPY prisma ./prisma
|
||||
|
||||
# Setup pnpm, install Prisma CLI (for generating client) and install dependencies
|
||||
|
|
19
release.sh
19
release.sh
|
@ -1,5 +1,22 @@
|
|||
#!/usr/bin/env bash
|
||||
#!/bin/bash
|
||||
set -e
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
if [ -n "$(git status --porcelain)" ]; then
|
||||
echo "Uncommitted changes"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ ! "$1" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
||||
echo "Invalid version '$1'";
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
# Update package version
|
||||
contents="$(jq ".version = \"$1\"" package.json)"
|
||||
echo -E "${contents}" > package.json
|
||||
pnpm i
|
||||
git add package.json pnpm-lock.yaml
|
||||
|
||||
CHANGELOG="CHANGELOG.md"
|
||||
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 2.5 KiB |
Loading…
Reference in a new issue