chore(deps): update typescript-eslint monorepo to v6.18.0 #1312
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: Node CI | |
on: | |
push: | |
branches: | |
- main | |
- master | |
pull_request: | |
branches: | |
- main | |
- master | |
defaults: | |
run: | |
shell: bash | |
working-directory: ./.github/generate-readme | |
jobs: | |
ci: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node: [16] | |
steps: | |
- name: π Checkout | |
uses: actions/checkout@v4 | |
- name: π Setup node env | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: π Check package.json definition | |
id: package-json | |
run: | | |
compile=$(cat package.json | jq '.scripts | has("compile")') | |
build=$(cat package.json | jq '.scripts | has("build")') | |
generate=$(cat package.json | jq '.scripts | has("generate")') | |
package=$(cat package.json | jq '.scripts | has("package")') | |
lint=$(cat package.json | jq '.scripts | has("lint")') | |
test=$(cat package.json | jq '.scripts | has("test")') | |
echo "compile: $compile" | |
echo "build: $build" | |
echo "generate: $generate" | |
echo "package: $package" | |
echo "lint: $lint" | |
echo "test: $test" | |
echo "compile=$compile" >> $GITHUB_OUTPUT | |
echo "build=$build" >> $GITHUB_OUTPUT | |
echo "generate=$generate" >> $GITHUB_OUTPUT | |
echo "package=$package" >> $GITHUB_OUTPUT | |
echo "lint=$lint" >> $GITHUB_OUTPUT | |
echo "test=$test" >> $GITHUB_OUTPUT | |
- name: π Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | |
- name: π¦ Cache node_modules | |
uses: actions/cache@v3 | |
id: yarn-cache | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: π¨π»βπ» Install dependencies | |
run: yarn | |
- name: π Run linter | |
if: steps.package-json.outputs.lint == 'true' | |
run: yarn lint | |
- name: π Run package | |
if: steps.package-json.outputs.package == 'true' | |
run: yarn package | |
- name: π Run compile | |
if: steps.package-json.outputs.compile == 'true' | |
run: yarn compile | |
- name: ποΈ Run build & generate (Nuxt.js) | |
if: steps.package-json.outputs.build == 'true' && steps.package-json.outputs.generate == 'true' | |
run: | | |
yarn build | |
yarn generate | |
- name: π§ͺ Run tests | |
if: steps.package-json.outputs.test == 'true' | |
run: yarn test | |
- name: βοΈ Check Dependencies | |
run: npx depcheck | |
- name: Check exists dist directory | |
id: check-dist | |
run: | | |
echo "exists=$(test -d dist && echo true || echo false)" >> $GITHUB_OUTPUT | |
- name: π¦ Upload artifact | |
if: steps.check-dist.outputs.exists == 'true' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ./.github/generate-readme/dist | |
path: dist |