diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 354862d..e60b245 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -14,14 +14,21 @@ jobs: uses: actions/checkout@v3 with: persist-credentials: false + + - name: Install pnpm + uses: pnpm/action-setup@v2 + - name: Setup Node uses: actions/setup-node@v3 with: cache: "pnpm" + - name: Install dependencies run: pnpm clean-install + - name: Build run: pnpm build + - name: Publish to Cloudflare Pages uses: cloudflare/pages-action@v1 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 93224dc..c0b17bf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,16 +13,16 @@ jobs: with: persist-credentials: false + - name: Install pnpm + uses: pnpm/action-setup@v2 + - name: Setup Node uses: actions/setup-node@v3 with: cache: "pnpm" - - name: Install pnpm - uses: pnpm/action-setup@v2 - - name: Install dependencies - run: pnpm clean-install + run: pnpm install - name: Run tests run: pnpm test -- --run