File tree Expand file tree Collapse file tree 1 file changed +20
-10
lines changed
Expand file tree Collapse file tree 1 file changed +20
-10
lines changed Original file line number Diff line number Diff line change 99 env :
1010 RELEASES_GPG_PASSPHARSE : ${{ secrets.RELEASES_GPG_PASSPHARSE }}
1111 RELEASES_GPG_KEY : ${{ secrets.RELEASES_GPG_KEY }}
12- UPGRADE_LOCAL_YARNPKG_BINARY : true
1312 steps :
1413 - uses : actions/checkout@v2
1514 with :
@@ -20,21 +19,32 @@ jobs:
2019 node-version : ' 14'
2120 - name : Setup Git
2221 run : curl -fsSL https://github.com/code-server-boilerplates/charts/raw/main/scripts/setup-ci | bash
23- - name : Install Yarn
24- run : npm i -g yarn
22+ - name : Update npmjs
23+ run : npm i -g npm@latest
2524 - name : Setup Yarn Berry
2625 shell : bash
2726 run : |
28- git checkout update-lockfiles
29- [ ! -d .yarn/versions ] && yarn set version berry || [ -d .yarn/versions ] && [[ $UPGRADE_LOCAL_YARNPKG_BINARY != "" ]] && yarn set version latest
27+ git switch -c update-lockfiles-$GITHUB_RUN_ID origin/master
3028 - name : Run install CI
31- run : yarn install
29+ run : npm ci
3230 - name : Attempt to upgrade dependencies
3331 run : |
34- yarn up gatsby react react-dom smooth-doc || true
32+ echo "::addgroup::List outdated packages"
33+ npm outdated
34+ echo "::endgroup::"
35+
36+ echo "::addgroup::Upgrade dependencies"
37+ npm update
38+ echo "::endgroup::"
3539 - name : Stage changes and check status
36- run : git add . && git status
40+ run : |
41+ git add .
42+
43+ echo "::addgroup::Check pending changes"
44+ git status -s
45+ echo "::endgroup::"
46+ sleep 30
3747 - name : Commit changes
3848 run : |
39- git commit -m "Updated Yarn lockfiles and stuff " --signoff
40- git push origin update-lockfiles
49+ git commit -m "Updated npmjs lockfiles and dependencies " --signoff
50+ git push origin update-lockfiles-$GITHUB_RUN_ID
You can’t perform that action at this time.
0 commit comments