Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

chore: setup Release Please for v12 stable (#6084)

Mark Wiemer219674fa5bfa
diff --git a/.github/release-please/config.json b/.github/release-please/config.json
index 93fabbdc..2cb530b5 100644
--- a/.github/release-please/config.json
+++ b/.github/release-please/config.json
@@ -3,10 +3,6 @@
"release-type": "node",
"include-component-in-tag": false,
- "prerelease": true,
- "versioning": "prerelease",
- "prerelease-type": "rc",
-
"changelog-sections": [
{ "type": "feat", "section": "🌟 Features", "hidden": false },
{ "type": "fix", "section": "🩹 Fixes", "hidden": false },
diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml
index 94507946..e1a082c5 100644
--- a/.github/workflows/release-please.yml
+++ b/.github/workflows/release-please.yml
@@ -63,8 +63,10 @@ jobs:
run: |
if [[ "$VERSION" == *-alpha* ]]; then
echo "tag=alpha" >> "$GITHUB_OUTPUT"
- else
+ elif [[ "$VERSION" == *-* ]]; then
echo "tag=next" >> "$GITHUB_OUTPUT"
+ else
+ echo "tag=latest" >> "$GITHUB_OUTPUT"
fi
- run: npm publish --provenance --access public --tag=${{ steps.dist_tag.outputs.tag }}