From 8db0d2c227f10585a27e394a5b3619496d948e80 Mon Sep 17 00:00:00 2001 From: Andrea Fassina Date: Sat, 23 Sep 2023 14:18:15 +0200 Subject: [PATCH] chore(api-gateway): build on prepublish command --- .github/workflows/publish-releases.yml | 8 -------- packages/api-gateway/package.json | 1 + 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/publish-releases.yml b/.github/workflows/publish-releases.yml index d192baf6..b943e7f3 100644 --- a/.github/workflows/publish-releases.yml +++ b/.github/workflows/publish-releases.yml @@ -44,14 +44,6 @@ jobs: timeout_minutes: 15 retry_on: error command: pnpm install --frozen-lockfile - - name: Build packages - run: | - if [! -z "${{ github.event.inputs.package }}" ]; - then - PATH="$(node ./scripts/get-package-from-tag.js '${{ github.ref_name }}')" - if [! -z "$PATH" ]; then cd $PATH; fi - fi - pnpm build - name: Release packages run: | if [! -z "${{ github.event.inputs.package }}" ]; diff --git a/packages/api-gateway/package.json b/packages/api-gateway/package.json index 5e634ff1..b21d6f80 100644 --- a/packages/api-gateway/package.json +++ b/packages/api-gateway/package.json @@ -14,6 +14,7 @@ "start:prod": "node dist/src/main", "lint": "eslint", "lint:fix": "eslint --fix", + "prepublish": "pnpm build", "pretest": "node ./test/before-all-tests.js", "release": "release-it --ci", "test": "pnpm pretest && tap --ts",