Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: auto update version on new release. #35

Merged
merged 9 commits into from
Oct 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading