Skip to content

chore(deps): update dependency @types/node to v20.10.6 #1304

chore(deps): update dependency @types/node to v20.10.6

chore(deps): update dependency @types/node to v20.10.6 #1304

Workflow file for this run

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