From 595b383169addd1857702a1c732e6e5c27931db7 Mon Sep 17 00:00:00 2001 From: Jonathan Foster Date: Sun, 10 Dec 2023 21:05:15 -0500 Subject: [PATCH] Update npm-publish.yml --- .github/workflows/npm-publish.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 5e0bb9f..04b0dd2 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -8,21 +8,29 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - uses: pnpm/action-setup@v2 + with: + version: 8 - uses: actions/setup-node@v1 with: node-version: 16 - - run: npm ci + cache: "pnpm" + - run: pnpm install --frozen-lockfile publish-npm: needs: build runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - uses: pnpm/action-setup@v2 + with: + version: 8 - uses: actions/setup-node@v1 with: node-version: 16 registry-url: https://registry.npmjs.org/ - - run: npm ci + cache: "pnpm" + - run: pnpm install --frozen-lockfile - run: npm run ci - run: npm publish env: