-
Notifications
You must be signed in to change notification settings - Fork 2
59 lines (49 loc) · 1.58 KB
/
coverage.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# 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 }}