From 299f5b725ba9e172414e20e72f8766c07d122497 Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Sat, 2 Jul 2022 12:18:55 +0800 Subject: [PATCH 1/2] ci: fix release tag for docker compose testing --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7f9c44648..85b5f67f6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -50,7 +50,7 @@ jobs: labels: ${{ steps.meta.outputs.labels }} - name: Compose up - run: TAG=dev docker compose up -d + run: TAG=${{ steps.meta.outputs.tags[0] }} docker compose up -d - name: Sleep for 30 seconds run: sleep 30s From 3e96642c284ee4c4c9f565f37df4fe631c24e9e5 Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Sat, 2 Jul 2022 12:40:22 +0800 Subject: [PATCH 2/2] ci: fix package script and fail fast --- .github/workflows/release.yml | 3 +++ package.sh | 2 ++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 85b5f67f6..70b301eae 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -67,6 +67,9 @@ jobs: with: fetch-depth: 0 + - name: Setup Node and pnpm + uses: silverhand-io/actions-node-pnpm-run-steps@v1.2.2 + - name: Package run: ./package.sh diff --git a/package.sh b/package.sh index 91f918cbe..05580352e 100755 --- a/package.sh +++ b/package.sh @@ -1,3 +1,5 @@ +set -eo pipefail + echo Building packages pnpm -- lerna run build --stream