diff --git a/.github/workflows/prp.yml b/.github/workflows/prp.yml new file mode 100644 index 0000000..7409a84 --- /dev/null +++ b/.github/workflows/prp.yml @@ -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: |- + + currentVersion: ${{ github.event.release.tag_name }} diff --git a/README.md b/README.prp.md similarity index 96% rename from README.md rename to README.prp.md index 1e114ea..21571b5 100644 --- a/README.md +++ b/README.prp.md @@ -1,3 +1,4 @@ +{_ alertMessage _}
# Vue Mess Detector Action @@ -70,7 +71,7 @@ jobs: cache: 'pnpm' - name: Vue Mess Detector Analysis - uses: brenoepics/vmd-action@v0.0.6 + uses: brenoepics/vmd-action@{_ currentVersion _} ``` @@ -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 _} ``` @@ -147,7 +148,7 @@ jobs: cache: 'yarn' - name: Vue Mess Detector Analysis - uses: brenoepics/vmd-action@v0.0.6 + uses: brenoepics/vmd-action@{_ currentVersion _} ``` @@ -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 _} ``` @@ -196,7 +197,7 @@ See [action.yml](action.yml) ```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 diff --git a/package.json b/package.json index 8919b4b..f17a60f 100644 --- a/package.json +++ b/package.json @@ -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" },