Update actions/setup-node action to v4.0.4 #114
Workflow file for this run
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: Run build for renovate PRs | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
permissions: | |
contents: write | |
pull-requests: read | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
check: | |
runs-on: ubuntu-24.04 | |
outputs: | |
javascript: ${{ steps.filter.outputs.javascript }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
- name: Check for changes | |
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2 | |
id: filter | |
with: | |
filters: | | |
javascript: | |
- 'package.json' | |
- 'yarn.lock' | |
build: | |
if: ${{ github.actor == 'renovate[bot]' && needs.check.outputs.javascript == 'true' }} | |
runs-on: ubuntu-24.04 | |
needs: check | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
with: | |
ref: ${{ github.head_ref }} | |
token: ${{ secrets.COMMIT_PAT }} | |
- name: Set up Node.js | |
uses: | |
actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 | |
with: | |
node-version-file: .nvmrc | |
- name: Install dependencies | |
run: corepack yarn install | |
- name: Run build | |
run: corepack yarn build | |
- name: Commit changes | |
id: commit | |
uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5.0.1 | |
with: | |
commit_message: 'Update dist/ after build' |