From c2634bd3e8b906bd7f1af3824d33563b9c6f47a3 Mon Sep 17 00:00:00 2001 From: "Raoul v. R" Date: Sat, 10 Feb 2024 23:55:15 +0100 Subject: [PATCH] Update cd.yml --- .github/workflows/cd.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 420397e1c..32fd180a2 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -21,20 +21,16 @@ jobs: uses: actions/setup-node@v3 with: cache: "pnpm" - - name: Install dependencies - run: pnpm install --frozen-lockfile + - name: Install dependencies and test + run: pnpm install-test --frozen-lockfile - name: Publish id: publish - uses: JS-DevTools/npm-publish@v2 + uses: JS-DevTools/npm-publish@v3 with: token: ${{ secrets.NPM_TOKEN }} - ignore-scripts: false - if: ${{ steps.publish.outputs.type }} run: | - echo "Version changed: ${{ steps.publish.outputs.old-version }} → ${{ steps.publish.outputs.version }}" - - if: ${{ !steps.publish.outputs.type }} - run: | - pnpm run prepublishOnly + echo "Published version: ${{ steps.publish.outputs.version }}" - name: Deploy run: pnpm run deploy - uses: JamesIves/github-pages-deploy-action@v4