@@ -2,7 +2,7 @@ name: dependencies
22on :
33 schedule :
44 - cron : 0 8 * * *
5- workflow_dispatch : {}
5+ workflow_dispatch : {}
66jobs :
77 upgrade :
88 runs-on : ubuntu-latest
@@ -13,19 +13,24 @@ jobs:
1313 uses : actions/setup-node@v1
1414 with :
1515 node-version : 10.17.0
16- - name : Install Tools
16+ - name : Install
1717 run : |-
18- npm -g install lerna npm-check-updates@^9.0.0
18+ yarn install --frozen-lockfile
1919 - name : List Mono-Repo Packages
2020 id : list-packages
2121 # These need to be ignored from the `ncu` runs since local dependencies
2222 # need to remain on 0.0.0
2323 run : |-
24+
25+ export PATH=./node_modules/.bin:${PATH}
26+
2427 echo -n "::set-output name=list::"
2528 node -p "$(lerna ls --all --json 2>/dev/null).map(item => item.name).join(',')"
2629 - name : Upgrade package.json files
2730 run : |-
2831
32+ export PATH=./node_modules/.bin:${PATH}
33+
2934 # We special-case typescript because it's not semantically versionned
3035 # and should remain on the same minor.
3136 # https://github.com/microsoft/TypeScript/issues/14116
4651 lerna exec --parallel ncu -- --upgrade --reject='constructs,projen,typescript,${{ steps.list-packages.outputs.list }}' --target=minor
4752
4853 - name : Upgrade lock file
49- # This will create a brand new `yarn.lock` file (this is more efficient than `yarn install && yarn upgrade`)
50- run : yarn install --force
54+ run : yarn install && yarn upgrade
5155 - name : Create Pull Request
5256 uses : peter-evans/create-pull-request@v3
5357 with :
0 commit comments