From e32abc5b3052d13983a1d2d777f234abfb8cc40a Mon Sep 17 00:00:00 2001 From: Gabriel Cozma Date: Tue, 23 Apr 2024 18:01:24 +0300 Subject: [PATCH] feat: Migrate workflow to PNPM --- .github/workflows/npm-publish.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index c40903b..6675dc8 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -13,7 +13,10 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 16 - - run: npm ci + - uses: pnpm/action-setup@v3 + with: + version: latest + - run: pnpm install publish-npm: needs: build @@ -24,8 +27,11 @@ jobs: with: node-version: 16 registry-url: https://registry.npmjs.org/ - - run: npm ci + - uses: pnpm/action-setup@v3 + with: + version: latest + - run: pnpm install - run: npm version patch - - run: npm publish + - run: pnpm publish env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}