update deps besides eslint and stylelint #238
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: CI Job | |
permissions: | |
pull-requests: write | |
repository-projects: write | |
contents: write | |
on: | |
pull_request: | |
types: [synchronize, opened, reopened] | |
push: | |
branches: | |
- master | |
jobs: | |
eslint_linter_job: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- run: node common/scripts/install-run-rush.js update | |
- run: node common/scripts/install-run-rush.js update-autoinstaller --name lint-staged | |
- run: node common/scripts/install-run-rush.js lint | |
prettier_linter_job: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- run: node common/scripts/install-run-rush.js update | |
- run: node common/scripts/install-run-rush.js update-autoinstaller --name lint-staged | |
- run: node common/scripts/install-run-rush.js prettier | |
pr_job: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- run: export NODE_OPTIONS=--openssl-legacy-provider | |
- run: node common/scripts/install-run-rush.js update | |
- run: node common/scripts/install-run-rush.js build | |
- run: node common/scripts/install-run-rush.js test:ci | |
automerge: | |
runs-on: ubuntu-latest | |
needs: [dependabot-update] | |
permissions: | |
pull-requests: write | |
contents: write | |
steps: | |
- uses: fastify/github-action-merge-dependabot@v3 | |
with: | |
github-token: ${{ github.token }} | |
dependabot-update: | |
runs-on: ubuntu-latest | |
needs: [eslint_linter_job, prettier_linter_job, pr_job] | |
if: ${{ github.actor == 'dependabot[bot]' }} | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/setup-node@v3 | |
with: | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
ref: ${{ github.event.pull_request.head.ref }} | |
node-version: 16 | |
- name: Update Lock File | |
run: node common/scripts/install-run-rush.js update | |
- name: Commit changes | |
uses: EndBug/add-and-commit@v8 | |
with: | |
message: 'Updated project dependencies' | |
default_author: github_actions |