Skip to content

Commit

Permalink
chore: set up the build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Dec 30, 2024
1 parent 608b30a commit 36f26ee
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: build

on:
push:
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm run build
- id: version
run: |
VERSION=$(npm list katex | grep -P '\d+([\d\.]+)' -o)
echo ${VERSION}
echo "number=${VERSION}" >> "$GITHUB_OUTPUT"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.MAINTAINER_TOKEN }}
commit-message: 'ci(deps): bump KaTeX to ${{ steps.version.outputs.number }}'

0 comments on commit 36f26ee

Please sign in to comment.