Take change from jerome
[poolifier.git] / .github / workflows / npmpublish.yml
index cfdc67a712004944e5f172a858a2599436271388..5882753099ee54a64a402ebf4a62a8989117a02e 100644 (file)
@@ -21,6 +21,14 @@ jobs:
       - run: npm run lint
       - run: npm run coverage
 
+  publish-npm:
+    needs: build
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v2
+
       - name: Setup Node
         uses: actions/setup-node@v2
         with:
@@ -28,9 +36,15 @@ jobs:
           registry-url: https://registry.npmjs.org/
 
       - name: Install
+        run: npm ci
+
+      - name: Build
+        run: npm run build:prod
+
+      - name: Install Production
         run: npm ci --production
 
       - name: Publish
-        run: npm publish --tags
+        run: npm publish --prepublishOnly
         env:
           NODE_AUTH_TOKEN: ${{secrets.npm_token}}