From 397d9f2ca552720245fc7dae35506946180913cd Mon Sep 17 00:00:00 2001 From: "Maxim.Kolmakov" Date: Tue, 10 Dec 2024 13:21:35 +0100 Subject: [PATCH] Rewrite workflow to PNPM --- .github/workflows/publish.yaml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index b82dbb7..c589cd6 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -16,8 +16,17 @@ jobs: with: node-version: '20.x' registry-url: 'https://registry.npmjs.org' - - run: npm ci - - run: npm run build - - run: npm publish --provenance --access public + + - name: Install pnpm + uses: pnpm/action-setup@v3 + with: + version: latest + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + + - name: Publish to NPM + run: pnpm publish --no-git-checks --access public --provenance env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file