File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ if git remote get-url --push origin | grep -qv " github.com:mongodb" ; then
4+ echo " git remote does not match node-mongodb-native. are you working off of a fork?"
5+ exit 1
6+ fi
Original file line number Diff line number Diff line change @@ -73,6 +73,8 @@ async function updateSiteTemplateForNewVersion(
7373}
7474
7575async function main ( ) {
76+ await exec ( 'bash ./etc/check-remote.sh' ) ;
77+
7678 chdir ( __dirname ) ;
7779
7880 const { tag, status, skipPrompts } = getCommandLineArguments ( ) ;
Original file line number Diff line number Diff line change 121121 "fix:eslint" : " npm run check:eslint -- --fix" ,
122122 "prepare" : " node etc/prepare.js" ,
123123 "preview:docs" : " ts-node etc/docs/preview.ts" ,
124- "release" : " standard-version -a -i HISTORY.md" ,
124+ "release" : " bash etc/check-remote.sh && standard-version -a -i HISTORY.md" ,
125125 "test" : " npm run check:lint && npm run test:all" ,
126126 "test:all" : " npm run check:unit && npm run check:test" ,
127127 "update:docs" : " npm run build:docs -- --yes"
You can’t perform that action at this time.
0 commit comments