diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 517a097..b733ba8 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,18 +10,18 @@ jobs: name: Deploy to static server runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 18 - cache: npm + cache: yarn - name: Install dependencies - run: npm ci + run: yarn install --frozen-lockfile - name: Build website - run: npm run build + run: yarn build - name: upload files uses: fangbinwei/aliyun-oss-website-action@v1.4.0 @@ -30,4 +30,4 @@ jobs: accessKeySecret: ${{ secrets.ACCESSKEY_SECRET }} bucket: web-toiletmc endpoint: oss-cn-hangzhou.aliyuncs.com - folder: ./build \ No newline at end of file + folder: ./build