Upgrade to the latest versions of rubocop-rails-accessibility and erb… #1498
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: Generate static files | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
static: | |
runs-on: ubuntu-latest | |
steps: | |
# Unfortunately we can't use the primer GitHub App and camertron/github-app-installation-auth-action | |
# because branch protection rules cannot be bypassed by Apps. | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GPR_AUTH_TOKEN_SHARED }} | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.3' | |
bundler-cache: true | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 16 | |
cache: 'npm' | |
- name: Build | |
run: npm ci | |
- name: Generate static files | |
run: | | |
bundle exec rake utilities:build | |
bundle exec rake docs:build | |
bundle exec rake static:dump | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Generating static files | |
commit_user_name: GitHub Design Engineering Bot | |
commit_user_email: [email protected] | |
commit_author: primer-css <[email protected]> | |
file_pattern: lib/primer/classify/utilities.yml static/*.json |