@@ -16,25 +16,25 @@ jobs:
1616
1717 strategy :
1818 matrix :
19- node-version : [16 .x]
19+ node-version : [20 .x]
2020
2121 steps :
2222 # 判断用户是否有写权限
2323 - name : ' Check if user has write access'
24- uses : ' lannonbr/repo- permission-check-action@2.0.0 '
24+ uses : ' opensumi/actions/ permission-check@main '
2525 with :
2626 permission : ' write'
2727 env :
2828 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2929
3030 # Checkout to specific branch
31- - uses : actions/checkout@v3
31+ - uses : actions/checkout@v4
3232 with :
3333 ref : ${{ github.event.inputs.ref }}
3434 token : ${{ secrets.GITHUB_TOKEN }}
3535
3636 - name : Use Node.js ${{ matrix.node-version }}
37- uses : actions/setup-node@v3
37+ uses : actions/setup-node@v4
3838 with :
3939 node-version : ${{ matrix.node-version }}
4040 registry-url : ' https://registry.npmjs.org'
@@ -43,11 +43,11 @@ jobs:
4343 id : yarn_cache_dir_path
4444 run : echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
4545
46- - uses : actions/cache@v3
46+ - uses : actions/cache@v4
4747 id : yarn_cache
4848 with :
4949 path : ${{ steps.yarn_cache_dir_path.outputs.dir }}
50- key : ${{ runner.os }}-yarn-${{ hashFiles('** /yarn.lock') }}
50+ key : ${{ runner.os }}-yarn-${{ hashFiles('. /yarn.lock') }}
5151 restore-keys : |
5252 ${{ runner.os }}-yarn-
5353
5656 run : |
5757 yarn install --immutable
5858 yarn run init
59- yarn run build:all
6059
6160 - name : Setup .yarnrc.yml
6261 run : |
9291 cat $GITHUB_STEP_SUMMARY >> $GITHUB_ENV
9392 echo 'EOF' >> $GITHUB_ENV
9493 env :
95- INPUT_REF : ${{ github.event.inputs.ref }}
94+ INPUT_REF : ${{ github.event.inputs.ref }}
0 commit comments