Skip to content

Commit 9427641

Browse files
Merge pull request #1071 from microsoftgraph/ramsessanchez-node-js-support
build!: support Node.js 22, 24, and 26
2 parents 630d8e5 + f12b494 commit 9427641

76 files changed

Lines changed: 509 additions & 73 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.azure-pipelines/daily-ci-build.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ extends:
4646
- task: NodeTool@0
4747
displayName: Set up Node.js
4848
inputs:
49-
versionSpec: '20.x'
49+
versionSpec: '22.x'
5050

5151
- task: npm@1
5252
displayName: Install dependencies

‎.github/workflows/build.yml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ jobs:
2121
strategy:
2222
fail-fast: false
2323
matrix:
24-
node-version: [20.x, 22.x]
25-
# Single version should work for compilation testing
24+
node-version: [22.x, 24.x, 26.x]
2625

2726
steps:
2827
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

‎CONTRIBUTING.md‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,19 @@ All pull requests should be submitted against the **main** branch or a specific
66

77
When a new package is about to be released, the release PR will be merged into `main`. The package will be generated from `main`.
88

9+
## Development prerequisites
10+
11+
Use Node.js 22.x, 24.x, or 26.x. GitHub Actions builds all three supported versions; Azure daily-build and release pipelines use Node.js 22.x.
12+
13+
Install dependencies and build all workspaces from the repository root:
14+
15+
```shell
16+
npm ci
17+
npm run build
18+
```
19+
20+
After building, run the integration tests with `npm test`. These tests call Microsoft Graph and require `TENANT_ID`, `CLIENT_ID`, `CLIENT_SECRET`, and `USER_ID` environment variables for a test tenant with appropriate permissions. GitHub Actions runs them only when its configured client secret is available.
21+
922
## Commit message format
1023

1124
To support our automated release process, pull requests are required to follow the [Conventional Commit](https://www.conventionalcommits.org/en/v1.0.0/)

‎README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Get started with the Microsoft Graph SDK for Typescript by integrating the [Micr
88

99
## 1. Installation
1010

11+
Supported Node.js versions are 22.x, 24.x, and 26.x.
12+
1113
```shell
1214
# this will install the main package
1315
npm install @microsoft/msgraph-sdk

0 commit comments

Comments
 (0)