chore(deps): update node.js to v22 #2479
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Backend | |
on: | |
push: | |
branches: | |
- "**" | |
paths: | |
- "functions/**" | |
- ".github/workflows/build-backend.yml" | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
build-backend: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the source code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 | |
with: | |
node-version-file: functions/package.json | |
cache: npm | |
cache-dependency-path: functions/package-lock.json | |
- name: Install dependencies | |
run: npm ci --ignore-scripts | |
working-directory: functions | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run postinstall scripts | |
run: npm rebuild && npm run prepare --if-present | |
working-directory: functions | |
- name: Build | |
run: npm run build | |
working-directory: functions |