8000 chore: don't checkout main when publishing canary · opennextjs/opennextjs-netlify@54e80b6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 54e80b6

Browse files
committed
chore: don't checkout main when publishing canary
1 parent 23f9379 commit 54e80b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"format:check:prettier": "cross-env-shell prettier --check $npm_package_config_prettier",
3131
"format:fix:prettier": "cross-env-shell prettier --write $npm_package_config_prettier",
3232
"prepublishOnly": "run-s prepublishOnly:*",
33-
"prepublishOnly:checkout": "git checkout main",
33+
"prepublishOnly:checkout": "[ -z \"$npm_config_tag\" ] && git checkout main; exit 0",
3434
"prepublishOnly:pull": "git pull",
3535
"prepublishOnly:install": "npm ci",
3636
"prepublishOnly:test": "npm test",

0 commit comments

Comments
 (0)
0