Take change from jerome v2.0.0-beta.5
authoraardizio <alessandroardizio94@gmail.com>
Fri, 19 Feb 2021 08:54:23 +0000 (09:54 +0100)
committeraardizio <alessandroardizio94@gmail.com>
Fri, 19 Feb 2021 08:54:23 +0000 (09:54 +0100)
.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}}