From de8b11e8927cb2d4630ecf73015ee46a75910e41 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Tue, 2 Jan 2024 12:44:33 -0500 Subject: [PATCH] chore(ci): package-lock is updated from separate job (#1308) --- .github/workflows/release.yml | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8f3ccdd1..bc6923cd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -55,13 +55,22 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} shell: bash - # Lerna does not automatically bump versions - # of Ionicons dependencies that have changed, - # so we do that here. - - name: Bump Package Lock - run: | - npx lerna exec "npm install --package-lock-only --legacy-peer-deps" - git add . - git commit -m "chore(): update package lock files" - git push - shell: bash \ No newline at end of file + + update-package-lock: + # This needs to run after finalize-release + # because we also push to the repo in that + # job. If these jobs ran in parallel then it is + # possible for them to push at the same time. + needs: [finalize-release] + runs-on: ubuntu-latest + steps: + # Lerna does not automatically bump versions + # of Ionicons dependencies that have changed, + # so we do that here. + - name: Bump Package Lock + run: | + npx lerna exec "npm install --package-lock-only --legacy-peer-deps" + git add . + git commit -m "chore(): update package lock files" + git push + shell: bash