Update typescript-eslint monorepo to v5.56.0 #7204
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: Continuous Integration | |
env: | |
SHANZHAI_CI: true | |
on: [push, pull_request] | |
jobs: | |
commit-changes: | |
if: github.ref == 'refs/heads/master' && github.repository == 'jameswilddev/shanzhai' | |
concurrency: commit-changes | |
runs-on: ubuntu-18.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '17.6' | |
registry-url: 'https://registry.npmjs.org' | |
- run: npm ci | |
- run: npm run-script buildLintFix | |
- run: npm run-script buildToolsTypeScript | |
- run: npm run-script buildToolsRun | |
- run: git config user.email jameswilddev@outlook.com | |
- run: git config user.name jameswilddev | |
- run: git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git | |
- run: git add . | |
- run: git diff --quiet && git diff --staged --quiet || (git commit -m "Auto-generated changes from build tools."; git push) | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-18.04, windows-2019, macos-10.15] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '17.6' | |
registry-url: 'https://registry.npmjs.org' | |
- run: npm ci | |
- run: npm run-script buildLint | |
- run: npm run-script buildToolsTypeScript | |
- run: npm run-script buildToolsRun | |
- run: npm run-script buildTypeScript | |
- run: npm run-script buildNyc | |
release: | |
if: github.ref == 'refs/heads/master' && github.repository == 'jameswilddev/shanzhai' | |
concurrency: release | |
needs: build | |
runs-on: ubuntu-18.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '17.6' | |
registry-url: 'https://registry.npmjs.org' | |
- run: npm ci | |
- run: npm run-script buildToolsTypeScript | |
- run: npm run-script buildToolsRun | |
- run: npm run-script buildTypeScript | |
- run: echo ${{ secrets.npmrc }} > ${NPM_CONFIG_USERCONFIG} | |
- run: npm run-script buildToolsPublish | |
commit-root-readme-changes: | |
if: github.ref == 'refs/heads/master' && github.repository == 'jameswilddev/shanzhai' | |
concurrency: commit-root-readme-changes | |
needs: release | |
runs-on: ubuntu-18.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '17.6' | |
registry-url: 'https://registry.npmjs.org' | |
- run: npm ci | |
- run: npm run-script buildLintFix | |
- run: npm run-script buildToolsTypeScript | |
- run: npm run-script buildToolsRun | |
- run: npm run-script buildTypeScript | |
- run: npm run-script buildToolsRegenerateRootReadme | |
- run: git config user.email jameswilddev@outlook.com | |
- run: git config user.name jameswilddev | |
- run: git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git | |
- run: git add readme.md | |
- run: git diff --quiet && git diff --staged --quiet || (git commit -m "Auto-generated changes from build tools (root readme)."; git push) |