Fix usage of prepublishOnly (#202)
authorShinigami <chrissi92@hotmail.de>
Fri, 19 Feb 2021 16:53:15 +0000 (17:53 +0100)
committerGitHub <noreply@github.com>
Fri, 19 Feb 2021 16:53:15 +0000 (17:53 +0100)
Co-authored-by: Jérôme Benoit <jerome.benoit@sap.com>
.github/workflows/npmpublish.yml
package.json

index 5882753099ee54a64a402ebf4a62a8989117a02e..73dc61c1800d29bb042329d033b906a09f67cd22 100644 (file)
@@ -38,13 +38,7 @@ jobs:
       - name: Install
         run: npm ci
 
-      - name: Build
-        run: npm run build:prod
-
-      - name: Install Production
-        run: npm ci --production
-
       - name: Publish
-        run: npm publish --prepublishOnly
+        run: npm publish
         env:
           NODE_AUTH_TOKEN: ${{secrets.npm_token}}
index 30210612539b25bb77da8fbad6fa1d8ef23dfe49..20e82636270920e24a1daf5a4aaba0aaac0a54ea 100644 (file)
@@ -17,7 +17,8 @@
     "coverage:html": "nyc report --reporter=html",
     "format": "prettier --loglevel silent --write .; prettierx --write .",
     "lint": "eslint .",
-    "lint:fix": "eslint . --fix"
+    "lint:fix": "eslint . --fix",
+    "prepublishOnly": "npm run build:prod"
   },
   "repository": {
     "type": "git",