diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c65e6496..7c36786f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -39,6 +39,4 @@ After submitting the pull request, please make sure the Continuous Integration c ## Releasing 1. Merge the release PR -2. Switch to the default branch `git checkout master` -3. Pull latest changes `git pull` -4. Publish the package `npm publish` +2. Publish the package `npm publish` diff --git a/package.json b/package.json index b4398899..a991d41c 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,12 @@ "test:dev": "run-s test:dev:*", "test:ci": "run-s test:ci:*", "test:dev:ava": "ava", - "test:ci:ava": "nyc -r lcovonly -r text -r json ava" + "test:ci:ava": "nyc -r lcovonly -r text -r json ava", + "prepublishOnly": "run-s prepublishOnly:*", + "prepublishOnly:checkout": "git checkout master", + "prepublishOnly:pull": "git pull", + "prepublishOnly:install": "npm ci", + "prepublishOnly:test": "npm test" }, "scriptsArgs": { "eslint": "--ignore-path .gitignore --cache --format=codeframe --max-warnings=0 \"{bin,.github}/**/*.{js,md,html}\" \".*.js\"",