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(
73
73
}
74
74
75
75
async function main ( ) {
76
+ await exec ( 'bash ./etc/check-remote.sh' ) ;
77
+
76
78
chdir ( __dirname ) ;
77
79
78
80
const { tag, status, skipPrompts } = getCommandLineArguments ( ) ;
Original file line number Diff line number Diff line change 121
121
"fix:eslint" : " npm run check:eslint -- --fix" ,
122
122
"prepare" : " node etc/prepare.js" ,
123
123
"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" ,
125
125
"test" : " npm run check:lint && npm run test:all" ,
126
126
"test:all" : " npm run check:unit && npm run check:test" ,
127
127
"update:docs" : " npm run build:docs -- --yes"
You can’t perform that action at this time.
0 commit comments