Skip to content

Build(deps): bump node from 23.2.0 to 23.3.0 #3

Build(deps): bump node from 23.2.0 to 23.3.0

Build(deps): bump node from 23.2.0 to 23.3.0 #3

name: Sync Node.js versions
on:
pull_request:
paths:
- 'Dockerfile'
permissions:
contents: write
jobs:
sync-node-version:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Update .nvmrc
run: |
echo 'Current nvmrc has version:'
cat .nvmrc
echo 'Overwriting .nvmrc with version inside updated Dockerfile'
grep -o -P '(?<=^FROM node:)\d+.?\d*.?\d*' Dockerfile > .nvmrc
- name: Commit changes
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add .nvmrc
git commit -m "chore: sync .nvmrc with Dockerfile node version" || exit 0
git push