From: Shinigami Date: Fri, 19 Feb 2021 16:53:15 +0000 (+0100) Subject: Fix usage of prepublishOnly (#202) X-Git-Tag: v2.0.0-beta.6~3 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=e41beb60860c421ea15b6f41002a9d44b65a811e;p=poolifier.git Fix usage of prepublishOnly (#202) Co-authored-by: Jérôme Benoit --- diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index 58827530..73dc61c1 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -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}} diff --git a/package.json b/package.json index 30210612..20e82636 100644 --- a/package.json +++ b/package.json @@ -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",