From e41beb60860c421ea15b6f41002a9d44b65a811e Mon Sep 17 00:00:00 2001 From: Shinigami Date: Fri, 19 Feb 2021 17:53:15 +0100 Subject: [PATCH] Fix usage of prepublishOnly (#202) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Co-authored-by: Jérôme Benoit --- .github/workflows/npmpublish.yml | 8 +------- package.json | 3 ++- 2 files changed, 3 insertions(+), 8 deletions(-) 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", -- 2.34.1