diff --git a/Dockerfile b/Dockerfile index 7024a06b2c..7b1bc2a943 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,14 +13,12 @@ RUN npx npm-cli-adduser --username test --password test -e test@nocobase.com -r RUN apt-get update && apt-get install -y jq WORKDIR /tmp COPY . /tmp -RUN cd /tmp && \ - NEWVERSION="$(cat lerna.json | jq '.version' | tr -d '"').$(date +'%Y%m%d%H%M%S')" \ - && tmp=$(mktemp) \ - && jq ".version = \"${NEWVERSION}\"" lerna.json > "$tmp" && mv "$tmp" lerna.json RUN yarn install && yarn build --no-dts -RUN git checkout -b release-$(date +'%Y%m%d%H%M%S') \ - && yarn lerna version ${NEWVERSION} -y --no-git-tag-version +RUN cd /tmp && \ + NEWVERSION="$(cat lerna.json | jq '.version' | tr -d '"').$(date +'%Y%m%d%H%M%S')" \ + && git checkout -b release-$(date +'%Y%m%d%H%M%S') \ + && yarn lerna version ${NEWVERSION} -y --no-git-tag-version RUN git config user.email "test@mail.com" \ && git config user.name "test" && git add . \ && git commit -m "chore(versions): test publish packages"