Skip to content

Commit de8b11e

Browse files
authored
chore(ci): package-lock is updated from separate job (#1308)
1 parent 64bbbf9 commit de8b11e

File tree

1 file changed

+19
-10
lines changed

1 file changed

+19
-10
lines changed

.github/workflows/release.yml

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,22 @@ jobs:
5555
env:
5656
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5757
shell: bash
58-
# Lerna does not automatically bump versions
59-
# of Ionicons dependencies that have changed,
60-
# so we do that here.
61-
- name: Bump Package Lock
62-
run: |
63-
npx lerna exec "npm install --package-lock-only --legacy-peer-deps"
64-
git add .
65-
git commit -m "chore(): update package lock files"
66-
git push
67-
shell: bash
58+
59+
update-package-lock:
60+
# This needs to run after finalize-release
61+
# because we also push to the repo in that
62+
# job. If these jobs ran in parallel then it is
63+
# possible for them to push at the same time.
64+
needs: [finalize-release]
65+
runs-on: ubuntu-latest
66+
steps:
67+
# Lerna does not automatically bump versions
68+
# of Ionicons dependencies that have changed,
69+
# so we do that here.
70+
- name: Bump Package Lock
71+
run: |
72+
npx lerna exec "npm install --package-lock-only --legacy-peer-deps"
73+
git add .
74+
git commit -m "chore(): update package lock files"
75+
git push
76+
shell: bash

0 commit comments

Comments
 (0)