diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c7249b4..16f4fb6 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -12,20 +12,25 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v4 + - name: Checkout + uses: actions/checkout@v4 - - name: Build - run: | - npm i - cd test - npm i - cd .. - npm run build + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 22 - - name: Deploy - uses: JamesIves/github-pages-deploy-action@v4 - with: - branch: gh-pages - folder: test/dist - single-commit: true + - name: Build + run: | + npm i + cd test + npm i + cd .. + npm run build + + - name: Deploy + uses: JamesIves/github-pages-deploy-action@v4 + with: + branch: gh-pages + folder: test/dist + single-commit: true