Bump prettier from 3.1.1 to 3.2.4 #278
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 dependabot PRs | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
permissions: | |
contents: write | |
pull-requests: read | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build: | |
if: ${{ github.actor == 'dependabot[bot]' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Fetch Dependabot metadata | |
id: dependabot-metadata | |
uses: dependabot/[email protected] | |
- uses: actions/[email protected] | |
if: ${{ steps.dependabot-metadata.outputs.package-ecosystem == 'npm_and_yarn' }} | |
with: | |
ref: ${{ github.head_ref }} | |
token: ${{ secrets.NGINX_PAT }} | |
- name: Set up Node.js 16.x | |
if: ${{ steps.dependabot-metadata.outputs.package-ecosystem == 'npm_and_yarn' }} | |
uses: actions/[email protected] | |
with: | |
node-version: 16.x | |
- name: Install dependencies | |
if: ${{ steps.dependabot-metadata.outputs.package-ecosystem == 'npm_and_yarn' }} | |
run: npm ci | |
- name: Run build | |
if: ${{ steps.dependabot-metadata.outputs.package-ecosystem == 'npm_and_yarn' }} | |
run: | | |
npm run build | |
npm run package | |
- name: Commit changes | |
if: ${{ steps.dependabot-metadata.outputs.package-ecosystem == 'npm_and_yarn' }} | |
id: commit | |
uses: stefanzweifel/[email protected] | |
with: | |
commit_message: 'Update dist/ after build' |