-
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 1.02 KB
/
benchmark.yml
File metadata and controls
36 lines (31 loc) · 1.02 KB
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
name: Run Benchmarks.
# publish only when package json has changed - assuming version upgrade
on:
workflow_dispatch:
jobs:
publish:
if: github.event.repository.owner.login == 'md2docx'
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org
- name: Setup Git
run: |
git config --global user.name "mayank1513"
git config --global user.email "mayank.srmu@gmail.com"
- run: npm i -g pnpm && pnpm i
name: Install dependencies
- name: clean up working directory
run: git status && git clean -f -d && git status
- name: Run Benchmarks
run: cd lib && pnpm build && pnpm benchmark
- name: Save benchmarks back to repo
run: git add . && git commit -m "Update benchmarks" && git push