chore(validator): import primitive type #24
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
# This workflow will install Python dependencies, run tests and lint with a single version of Python | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: Generate README meta data | |
on: | |
push: | |
# only core workspace | |
paths: | |
- 'packages/core/**' | |
branches: | |
- 'master' | |
jobs: | |
# contrib-readme-job: | |
# runs-on: ubuntu-latest | |
# name: A job to automate contrib in readme | |
# steps: | |
# - name: Contribute List | |
# uses: akhilmhdh/[email protected] | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.PAT }} | |
build-dist: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install pnpm | |
run: corepack enable | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: | | |
pnpm install --no-frozen-lockfile | |
pnpm install istanbul-badges-readme | |
- name: Generate coverage and badges | |
run: | | |
pnpm run coverage | |
pnpm run coverage:badges | |
- name: Commit and push changes | |
run: | | |
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts | |
git config --local user.email "[email protected]" && git config --local user.name "YiJie" | |
git add packages/*/README.md | |
git commit -m "chore: update coverage and badges" | |
git push origin HEAD:${{ github.ref }} |