Skip to content

chore: add the build workflow #2

chore: add the build workflow

chore: add the build workflow #2

Workflow file for this run

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 }}'