name: Update node.js versions # Runs nightly and manually on: workflow_dispatch: schedule: - cron: "0 0 * * *" permissions: contents: none # We use the github app to open a PR jobs: update_generated_files: name: Update Node.js versions runs-on: ubuntu-latest steps: - uses: mongodb-js/devtools-shared/actions/setup-bot-token@48521375c90a504db064c2805af41741c1aaf789 # main id: app-token with: app-id: ${{ vars.DEVTOOLS_BOT_APP_ID }} private-key: ${{ secrets.DEVTOOLS_BOT_PRIVATE_KEY }} - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: # don't checkout a detached HEAD ref: ${{ github.head_ref }} token: ${{ steps.app-token.outputs.token }} - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6 with: check-latest: true node-version: 24.x - name: Install dependencies run: npm ci - name: Bump packages run: | npm run update-node-js-versions npm run update-evergreen-config - name: Create Pull Request uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # 8.1.1 with: token: ${{ steps.app-token.outputs.token }} commit-message: "chore: update node.js version" branch: ci/update-node-js-versions title: "chore: update node.js" body: | - Update node.js