From 4b501fd00ca4325f635f9c0eadf98ae225af2ae8 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Wed, 23 Nov 2022 10:26:57 -0500 Subject: [PATCH] chore(ci): always bootstrap packages (#26349) --- .../workflows/actions/publish-npm/action.yml | 6 +++--- .github/workflows/release-ionic.yml | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/.github/workflows/actions/publish-npm/action.yml b/.github/workflows/actions/publish-npm/action.yml index 8213c8a98c..2872768d41 100644 --- a/.github/workflows/actions/publish-npm/action.yml +++ b/.github/workflows/actions/publish-npm/action.yml @@ -21,11 +21,11 @@ runs: with: node-version: 16.x - name: Install Dependencies - run: lerna bootstrap --scope ${{ inputs.scope }} --ignore-scripts -- --legacy-peer-deps + run: lerna bootstrap --include-dependencies --scope ${{ inputs.scope }} --ignore-scripts -- --legacy-peer-deps shell: bash working-directory: ${{ inputs.working-directory }} - name: Update Version - run: npm version ${{ inputs.version }} + run: lerna version ${{ inputs.version }} --yes --exact --no-changelog --no-push --no-git-tag-version shell: bash working-directory: ${{ inputs.working-directory }} - name: Run Build @@ -39,6 +39,6 @@ runs: env: NPM_TOKEN: ${{ inputs.token }} - name: Publish to NPM - run: npm publish ${{ inputs.folder }} --tag ${{ inputs.tag }} --git-tag-version false + run: npm publish ${{ inputs.folder }} --tag ${{ inputs.tag }} shell: bash working-directory: ${{ inputs.working-directory }} diff --git a/.github/workflows/release-ionic.yml b/.github/workflows/release-ionic.yml index 420ac86645..054a3e20ba 100644 --- a/.github/workflows/release-ionic.yml +++ b/.github/workflows/release-ionic.yml @@ -140,6 +140,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - name: Restore @ionic/core built cache + uses: ./.github/workflows/actions/download-archive + with: + name: ionic-core + path: ./core + filename: CoreBuild.zip - name: Restore @ionic/angular built cache uses: ./.github/workflows/actions/download-archive with: @@ -160,6 +166,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - name: Restore @ionic/core built cache + uses: ./.github/workflows/actions/download-archive + with: + name: ionic-core + path: ./core + filename: CoreBuild.zip - name: Restore @ionic/react built cache uses: ./.github/workflows/actions/download-archive with: @@ -179,6 +191,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - name: Restore @ionic/core built cache + uses: ./.github/workflows/actions/download-archive + with: + name: ionic-core + path: ./core + filename: CoreBuild.zip - name: Restore @ionic/vue built cache uses: ./.github/workflows/actions/download-archive with: