Skip to content

Commit

Permalink
[meta] avoid running safe-publish-latest when not publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Aug 11, 2019
1 parent 2df75e0 commit df44b27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"preversion": "auto-changelog",
"prepublish": "safe-publish-latest",
"prepublish": "not-in-publish || safe-publish-latest",
"lint": "eslint .",
"pretest": "npm run lint",
"tests-only": "node test",
Expand Down Expand Up @@ -42,6 +42,7 @@
"auto-changelog": "^1.14.1",
"eslint": "^6.1.0",
"has-symbols": "^1.0.0",
"in-publish": "^2.0.0",
"object-inspect": "^1.6.0",
"safe-publish-latest": "^1.1.2",
"tape": "^4.11.0"
Expand Down

0 comments on commit df44b27

Please sign in to comment.