From ce5597bbcbd5ecd22ed55b5f2a4674901f2824cf Mon Sep 17 00:00:00 2001 From: aboutphilippe Date: Sun, 18 Aug 2024 18:53:07 +0200 Subject: [PATCH] add pnpm to github action --- .github/workflows/publish-npm.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 42a007e..8fbbd4e 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -18,13 +18,14 @@ jobs: with: node-version: 20 registry-url: "https://registry.npmjs.org" - - run: npm install + - run: npm install -g pnpm + - run: pnpm install working-directory: ./ - - run: npm run build + - run: pnpm -r run build working-directory: ./ - - run: npm version patch + - run: pnpm version patch working-directory: ./ - - run: npm publish --access public + - run: pnpm publish --access public working-directory: ./ env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}