build: fix npm registry publication with pnpm
[poolifier.git] / .github / workflows / npmpublish.yml
index cf68a7ae1abd64f5be3c9db4691e7384c2d03800..0fea6aae699b546f962f1c9d8abc6f292f2c8d0c 100644 (file)
@@ -53,7 +53,10 @@ jobs:
         uses: jaywcjlove/github-action-package@main
 
       - name: Install
-        run: pnpm install
+        run: |
+          corepack enable
+          corepack prepare pnpm@latest --activate
+          pnpm install
 
       - name: Publish Release
         if: ${{ contains(steps.package-version.outputs.version, '-') == false }}