Skip to content

Commit

Permalink
ci: auto update readme.md with prp
Browse files Browse the repository at this point in the history
  • Loading branch information
brenoepics committed Oct 13, 2024
1 parent 34de203 commit 47239f0
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 6 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/prp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Run PRP Release Preprocessor

on:
release:
types: [created, edited, published]

permissions:
contents: write

jobs:
test-action:
runs-on: ubuntu-latest
name: Test action
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: "main"

- name: PRP Preprocessor
uses: CIFriends/prp-preprocessor@v1
env:
prpTitle: 'prp-preprocessor'
alertMessage: |-
<!-- This file was generated from a .prp -->
currentVersion: ${{ github.event.release.tag_name }}
11 changes: 6 additions & 5 deletions README.md → README.prp.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{_ alertMessage _}
<div align="center">

# Vue Mess Detector Action
Expand Down Expand Up @@ -70,7 +71,7 @@ jobs:
cache: 'pnpm'

- name: Vue Mess Detector Analysis
uses: brenoepics/vmd-action@v0.0.6
uses: brenoepics/vmd-action@{_ currentVersion _}
```
</details>
Expand Down Expand Up @@ -108,7 +109,7 @@ jobs:
node-version: 20

- name: Vue Mess Detector Analysis
uses: brenoepics/vmd-action@v0.0.6
uses: brenoepics/vmd-action@{_ currentVersion _}
```
</details>
Expand Down Expand Up @@ -147,7 +148,7 @@ jobs:
cache: 'yarn'

- name: Vue Mess Detector Analysis
uses: brenoepics/vmd-action@v0.0.6
uses: brenoepics/vmd-action@{_ currentVersion _}
```
</details>
Expand Down Expand Up @@ -185,7 +186,7 @@ jobs:
bun-version: 'latest'

- name: Vue Mess Detector Analysis
uses: brenoepics/vmd-action@v0.0.6
uses: brenoepics/vmd-action@{_ currentVersion _}
```
</details>
Expand All @@ -196,7 +197,7 @@ See [action.yml](action.yml)
<!-- start usage -->
```yaml
- uses: brenoepics/vmd-action@v0.0.6
- uses: brenoepics/vmd-action@{_ currentVersion _}
with:
# Personal access token (PAT) used to fetch the repository. The PAT is
# configured with the local git config, which enables your scripts to run
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"package:watch": "pnpm run package --watch",
"test": "pnpm vitest --coverage --run",
"prepublishOnly": "pnpm run clean && pnpm install && pnpm run build",
"release": "pnpm preflight && changelogen --release --bump && git push --follow-tags",
"release": "pnpm preflight && changelogen --release --bump",
"preflight": "pnpm install && pnpm run format:write && pnpm run lint && pnpm run test && pnpm run package",
"prepare": "husky"
},
Expand Down

0 comments on commit 47239f0

Please sign in to comment.