diff options
Diffstat (limited to '.github/workflows/dependency-updates.yml')
-rw-r--r-- | .github/workflows/dependency-updates.yml | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/.github/workflows/dependency-updates.yml b/.github/workflows/dependency-updates.yml index 1d04a14c2..a9406df23 100644 --- a/.github/workflows/dependency-updates.yml +++ b/.github/workflows/dependency-updates.yml | |||
@@ -26,8 +26,9 @@ jobs: | |||
26 | uses: actions/checkout@v2 | 26 | uses: actions/checkout@v2 |
27 | with: | 27 | with: |
28 | submodules: recursive | 28 | submodules: recursive |
29 | - name: Extract Git branch name from the currently checked out branch (not from the branch where this run was kicked off) | 29 | - name: Extract Git branch name and commit from the currently checked out branch (not from the branch where this run was kicked off) |
30 | run: echo "GIT_BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)" >> $GITHUB_ENV | 30 | run: | |
31 | echo "GIT_BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)" >> $GITHUB_ENV | ||
31 | shell: bash | 32 | shell: bash |
32 | - name: Cache node modules | 33 | - name: Cache node modules |
33 | uses: actions/cache@v2 | 34 | uses: actions/cache@v2 |
@@ -43,10 +44,11 @@ jobs: | |||
43 | uses: actions/setup-node@v2 | 44 | uses: actions/setup-node@v2 |
44 | with: | 45 | with: |
45 | node-version: 14.17.3 | 46 | node-version: 14.17.3 |
46 | - name: Uninstall locally and reinstall node-gyp globally | 47 | - name: Uninstall locally and reinstall global npm modules |
47 | run: | | 48 | run: | |
48 | npm uninstall node-gyp | 49 | npm uninstall node-gyp |
49 | npm i -g node-gyp@8.0.0 && npm config set node_gyp "$(which node-gyp)" | 50 | npm ls -g node-gyp@8.1.0 || npm i -g node-gyp@8.1.0 |
51 | npm ls -g lerna@4.0.0 || npm i -g lerna@4.0.0 | ||
50 | - name: Install node dependencies recursively | 52 | - name: Install node dependencies recursively |
51 | run: npx lerna bootstrap | 53 | run: npx lerna bootstrap |
52 | - name: Update submodules | 54 | - name: Update submodules |
@@ -62,9 +64,5 @@ jobs: | |||
62 | git config user.name github-actions | 64 | git config user.name github-actions |
63 | git config user.email github-actions@github.com | 65 | git config user.email github-actions@github.com |
64 | git commit -am "Update submodules, browserslist data updates and linter fixes [skip ci]" --no-verify || true | 66 | git commit -am "Update submodules, browserslist data updates and linter fixes [skip ci]" --no-verify || true |
65 | echo "CHANGES_COUNT=$(git diff --shortstat origin/${{ env.GIT_BRANCH_NAME }} | wc -l)" | ||
66 | - name: Bump version number if this is a scheduled build with changes or has been manually triggered with 'version bump' in the text, then bump the version number | ||
67 | if: ${{ (github.event_name == 'schedule' && env.CHANGES_COUNT != '0') || (github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, 'version bump')) }} | ||
68 | run: npm version prerelease --preid=nightly | ||
69 | - name: Push all changes | 67 | - name: Push all changes |
70 | run: git push origin ${{ env.GIT_BRANCH_NAME }} --no-verify | 68 | run: git push origin ${{ env.GIT_BRANCH_NAME }} --no-verify |