-
-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (28 loc) · 821 Bytes
/
Copy pathbuild.yml
File metadata and controls
31 lines (28 loc) · 821 Bytes
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
name: build
on:
push:
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v6
with:
node-version: 24
- run: npm ci
- run: npm run build
- id: version
run: |
VERSION=$(npm list decap-cms | grep -P '\d+([\d\.]+)' -o)
echo ${VERSION}
echo "number=${VERSION}" >> "$GITHUB_OUTPUT"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v8
with:
# token: ${{ secrets.MAINTAINER_TOKEN }}
title: 'ci(deps): bump decap-cms to ${{ steps.version.outputs.number }}'
commit-message: 'ci(deps): bump decap-cms to ${{ steps.version.outputs.number }}'