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 9
9
env :
10
10
RELEASES_GPG_PASSPHARSE : ${{ secrets.RELEASES_GPG_PASSPHARSE }}
11
11
RELEASES_GPG_KEY : ${{ secrets.RELEASES_GPG_KEY }}
12
- UPGRADE_LOCAL_YARNPKG_BINARY : true
13
12
steps :
14
13
- uses : actions/checkout@v2
15
14
with :
@@ -20,21 +19,32 @@ jobs:
20
19
node-version : ' 14'
21
20
- name : Setup Git
22
21
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
25
24
- name : Setup Yarn Berry
26
25
shell : bash
27
26
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
30
28
- name : Run install CI
31
- run : yarn install
29
+ run : npm ci
32
30
- name : Attempt to upgrade dependencies
33
31
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::"
35
39
- 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
37
47
- name : Commit changes
38
48
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