From 55b7c845a4f66aaec8de36bea9fd73464fe598a7 Mon Sep 17 00:00:00 2001 From: Mike Carlotta Date: Tue, 30 Mar 2021 16:06:14 -0700 Subject: [PATCH] run build on publish --- .circleci/config.yml | 24 ------------------------ .github/workflows/publish.yml | 2 +- package.json | 3 +-- 3 files changed, 2 insertions(+), 27 deletions(-) delete mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 2367a4d..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,24 +0,0 @@ -version: 2 -jobs: - build: - docker: - - image: circleci/node:8.11.2 - - working_directory: /tmp/bundle-js - - steps: - - checkout - - - restore_cache: - key: v1-dependencies-{{ checksum "package.json" }} - - - run: npm install - - - save_cache: - key: v1-dependencies-{{ checksum "package.json" }} - paths: - - node_modules - - - run: npm run lint - - run: npm test - - run: npm run build diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d4ea44e..ea883de 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -19,7 +19,7 @@ jobs: - run: npm i --frozen-lockfile env: NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - run: npm build + - run: npm run build - run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index e327a42..108d629 100644 --- a/package.json +++ b/package.json @@ -24,8 +24,7 @@ "format": "prettier --write \"src/**/*.js\" --loglevel warn", "lint": "eslint -f @wisersolutions/eslint-formatter-idea ./src", "test": "jest 'src/'", - "build": "transpile-js", - "prepublishOnly": "npm run build" + "build": "transpile-js" }, "devDependencies": { "@wisersolutions/eslint-config": "^2.0.6",