From 620e45e8320339f4f5387a13f1c772fb4a5a1dfe Mon Sep 17 00:00:00 2001 From: Abhinav Gupta Date: Wed, 9 Aug 2023 18:50:41 +0530 Subject: [PATCH] fix: added prepack sections for export and import commands --- .github/workflows/release.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 962a304c9b..2c4c326084 100755 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -102,6 +102,10 @@ jobs: if: ${{ env.release_releaseAll == 'true' || env.release_plugins_export == 'true'}} working-directory: ./packages/contentstack-export run: npm install + - name: Compiling export + if: ${{ steps.export-installation.conclusion == 'success' }} + working-directory: ./packages/contentstack-export + run: npm run prepack - name: Publishing export uses: JS-DevTools/npm-publish@v1 if: ${{ steps.export-installation.conclusion == 'success' }} @@ -113,6 +117,10 @@ jobs: if: ${{env.release_releaseAll == 'true' || env.release_plugins_import == 'true'}} working-directory: ./packages/contentstack-import run: npm install + - name: Compiling import + if: ${{ steps.import-installation.conclusion == 'success' }} + working-directory: ./packages/contentstack-import + run: npm run prepack - name: Publishing import uses: JS-DevTools/npm-publish@v1 if: ${{ steps.import-installation.conclusion == 'success' }}