@@ -13,16 +13,17 @@ jobs:
1313 runs-on : ubuntu-latest
1414 strategy :
1515 matrix :
16- node-version : [18 .x]
16+ node-version : [20 .x]
1717 # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
1818
1919 steps :
20- - uses : actions/checkout@v4
20+ - name : Checkout code
21+ uses : actions/checkout@v4
2122
22- - uses : pnpm/action-setup@v2
23- name : Install pnpm
23+ - name : Install pnpm
24+ uses : pnpm/action-setup@v4
2425 with :
25- version : 8.6
26+ version : 10
2627 run_install : false
2728
2829 - name : " Use Node.js ${{ matrix.node-version }}"
@@ -39,17 +40,17 @@ jobs:
3940 run : |
4041 echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
4142
42- - name : " 缓存 Cache"
43- uses : actions/cache@v3
43+ - name : " Cache"
44+ uses : actions/cache@v4
4445 id : cache-dependencies
4546 with :
4647 path : node_modules
47- key : ${{runner.OS}}-${{hashFiles('**/yarn. lock')}}
48+ key : ${{runner.OS}}-${{hashFiles('**/pnpm- lock.yaml ')}}
4849
4950 - name : Fetch all tags
5051 run : sudo git fetch --force --tags
51- - name : " 读取当前版本号 Read the current version number"
5252
53+ - name : " Read the current version number"
5354 id : version
5455 uses : zhanghengxin/reading-a-file-of-JSON@ice
5556 with :
6061 id : get_version
6162 run : echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
6263
63- - name : " 输出 echo artifact"
64+ - name : " echo artifact"
6465 run : |
6566 echo ${{ steps.version.outputs.value }}
6667 echo github ${{ github }}
7677 - run : pnpm build
7778 - run : |
7879 tar -zcvf linux-all-casaos-${{ steps.get_version.outputs.VERSION }}.tar.gz build
79- - name : " 更新 Update release"
80+
81+ - name : " Update release"
8082 uses : zhanghengxin/git-release-private@ice
8183 with :
8284 token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments