Skip to content

Commit f0e985b

Browse files
committed
use token from bot
1 parent 755e87a commit f0e985b

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

.github/workflows/bump-auxiliary-packages.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,21 @@ jobs:
1010
name: Bump packages
1111
runs-on: ubuntu-latest
1212
steps:
13-
- name: Create Github App Token
14-
uses: mongodb-js/devtools-shared/actions/setup-bot-token@main
13+
- uses: mongodb-js/devtools-shared/actions/setup-bot-token@main
1514
id: app-token
1615
with:
1716
app-id: ${{ vars.DEVTOOLS_BOT_APP_ID }}
18-
private-key: ${{ secrets.DEVTOOLS_BOT_PRIVATE_KEY }}
19-
17+
private-key: ${{ secrets.DEVTOOLS_BOT_PRIVATE_KEY }}
2018
- uses: actions/checkout@v4
2119
with:
2220
# don't checkout a detatched HEAD
2321
ref: ${{ github.head_ref }}
2422

23+
# this is important so git log can pick up on
24+
# the whole history to generate the list of AUTHORS
25+
fetch-depth: "0"
26+
token: ${{ steps.app-token.outputs.token }}
27+
2528
- uses: actions/setup-node@v4
2629
with:
2730
node-version: 20.16.0
@@ -33,7 +36,6 @@ jobs:
3336
3437
- name: Install Dependencies
3538
run: |
36-
npm -v
3739
npm ci
3840
3941
- name: Bump packages

.github/workflows/publish-auxiliary-packages.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919

2020
steps:
21-
- name: Create Github App Token
22-
uses: mongodb-js/devtools-shared/actions/setup-bot-token@main
21+
- uses: mongodb-js/devtools-shared/actions/setup-bot-token@main
2322
id: app-token
2423
with:
2524
app-id: ${{ vars.DEVTOOLS_BOT_APP_ID }}
@@ -30,6 +29,11 @@ jobs:
3029
# don't checkout a detatched HEAD
3130
ref: ${{ github.head_ref }}
3231

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+
3337
- name: "Use Node.js 20"
3438
uses: actions/setup-node@v4
3539
with:

packages/build/src/npm-packages/bump.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
import { promises as fs } from 'fs';
99
import path from 'path';
1010
import { PROJECT_ROOT } from './constants';
11-
import * as monorepoTools from '@mongodb-js/monorepo-tools';
1211

1312
describe('npm-packages bump', function () {
1413
let fsReadFile: SinonStub;

0 commit comments

Comments
 (0)