Skip to content

Commit

Permalink
chore: add the build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Dec 30, 2024
1 parent 6082e4a commit 7a4cdd3
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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 decap-cms | grep -P '\d+([\d\.]+)' -o)
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 decap-cms to ${{ steps.version.outputs.number }}'

0 comments on commit 7a4cdd3

Please sign in to comment.