99 branches :
1010 - main
1111
12+ permissions :
13+ contents : none # We use the github app to checkout and push tags
14+
1215jobs :
1316 publish :
1417 if : |
@@ -18,40 +21,39 @@ jobs:
1821 runs-on : ubuntu-latest
1922
2023 steps :
21- - uses : mongodb-js/devtools-shared/actions/setup-bot-token@main
22- id : app-token
23- with :
24- app-id : ${{ vars.DEVTOOLS_BOT_APP_ID }}
25- private-key : ${{ secrets.DEVTOOLS_BOT_PRIVATE_KEY }}
26-
27- - uses : actions/checkout@v4
28- with :
29- # don't checkout a detatched HEAD
30- ref : ${{ github.head_ref }}
31-
32- # this is important so git log can pick up on
33- # the whole history to generate the list of AUTHORS
34- fetch-depth : " 0"
35- token : ${{ steps.app-token.outputs.token }}
36-
37- - name : " Use Node.js 20"
38- uses : actions/setup-node@v4
39- with :
40- node-version : 20.16.0
41-
42- 43- run :
npm install -g [email protected] 44-
45- - name : Install Dependencies
46- run : |
47- npm ci
48-
49- - name : " Publish what is not already in NPM"
50- env :
51- NPM_TOKEN : ${{ secrets.DEVTOOLSBOT_NPM_TOKEN }}
52- run : |
53- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ~/.npmrc
54- npm config list
55- echo "Publishing packages as $(npm whoami)"
56- npm run publish-auxiliary
57-
24+ - uses : mongodb-js/devtools-shared/actions/setup-bot-token@main
25+ id : app-token
26+ with :
27+ app-id : ${{ vars.DEVTOOLS_BOT_APP_ID }}
28+ private-key : ${{ secrets.DEVTOOLS_BOT_PRIVATE_KEY }}
29+
30+ - uses : actions/checkout@v4
31+ with :
32+ # don't checkout a detatched HEAD
33+ ref : ${{ github.head_ref }}
34+
35+ # this is important so git log can pick up on
36+ # the whole history to generate the list of AUTHORS
37+ fetch-depth : " 0"
38+ token : ${{ steps.app-token.outputs.token }}
39+
40+ - name : " Use Node.js 20"
41+ uses : actions/setup-node@v4
42+ with :
43+ node-version : 20.16.0
44+
45+ 46+ run :
npm install -g [email protected] 47+
48+ - name : Install Dependencies
49+ run : |
50+ npm ci
51+
52+ - name : " Publish what is not already in NPM"
53+ env :
54+ NPM_TOKEN : ${{ secrets.DEVTOOLSBOT_NPM_TOKEN }}
55+ run : |
56+ echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ~/.npmrc
57+ npm config list
58+ echo "Publishing packages as $(npm whoami)"
59+ npm run publish-auxiliary
0 commit comments