build: ensure pnpm will publish in CI even with uncommited changes
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 3 Apr 2023 18:17:25 +0000 (20:17 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 3 Apr 2023 18:17:25 +0000 (20:17 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.github/workflows/npmpublish.yml

index 0fea6aae699b546f962f1c9d8abc6f292f2c8d0c..040a1b2f6da21f9e2014083dfb8252833a734c3e 100644 (file)
@@ -60,13 +60,13 @@ jobs:
 
       - name: Publish Release
         if: ${{ contains(steps.package-version.outputs.version, '-') == false }}
-        run: pnpm publish
+        run: pnpm publish --no-git-checks
         env:
           NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
 
       - name: Publish Pre-Release
         if: ${{ contains(steps.package-version.outputs.version, '-') == true }}
-        run: pnpm publish --tag next
+        run: pnpm publish --no-git-checks --tag next
         env:
           NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}