Skip to content

Commit 4d38b34

Browse files
authored
chore: add prepublish script (#89)
1 parent fbb676a commit 4d38b34

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,4 @@ After submitting the pull request, please make sure the Continuous Integration c
3939
## Releasing
4040

4141
1. Merge the release PR
42-
2. Switch to the default branch `git checkout master`
43-
3. Pull latest changes `git pull`
44-
4. Publish the package `npm publish`
42+
2. Publish the package `npm publish`

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@
2727
"test:dev": "run-s test:dev:*",
2828
"test:ci": "run-s test:ci:*",
2929
"test:dev:ava": "ava",
30-
"test:ci:ava": "nyc -r lcovonly -r text -r json ava"
30+
"test:ci:ava": "nyc -r lcovonly -r text -r json ava",
31+
"prepublishOnly": "run-s prepublishOnly:*",
32+
"prepublishOnly:checkout": "git checkout master",
33+
"prepublishOnly:pull": "git pull",
34+
"prepublishOnly:install": "npm ci",
35+
"prepublishOnly:test": "npm test"
3136
},
3237
"scriptsArgs": {
3338
"eslint": "--ignore-path .gitignore --cache --format=codeframe --max-warnings=0 \"{bin,.github}/**/*.{js,md,html}\" \".*.js\"",

0 commit comments

Comments
 (0)