From 747d8a27cd17c57438818641f365978f0207cbc0 Mon Sep 17 00:00:00 2001 From: Aleksandr Grenishin Date: Tue, 6 Jun 2023 15:45:36 +0300 Subject: [PATCH] chore: revert build script run before test (#957) --- package.json | 1 + ship.config.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/package.json b/package.json index 4e84aa7ae..28f678a8d 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "lint:css": "stylelint './src/stylesheets/**/*.pcss'", "lint:js": "eslint . && prettier --check \"**/*.js\"", "test:ci": "cypress run", + "pretest": "npm run build", "test": "npm run lint:css && npm run lint:js && npm run test:ci", "release:prepare": "shipjs prepare", "release:trigger": "shipjs trigger" diff --git a/ship.config.js b/ship.config.js index f3c8a824f..afbdf6fa1 100644 --- a/ship.config.js +++ b/ship.config.js @@ -1,6 +1,8 @@ module.exports = { mergeStrategy: { toSameBranch: ['master'] }, pullRequestReviewers: ['nd0ut'], + // build command is empty because it will be implicitly run by the test command below + buildCommand: () => null, testCommandBeforeRelease: () => 'npm run test', afterPublish: ({ exec }) => exec('node ./scripts/publish-to-s3.js') }