Skip to content

Commit

Permalink
ci: Migrate to manifest config
Browse files Browse the repository at this point in the history
  • Loading branch information
scagood committed Feb 27, 2024
1 parent e31d868 commit ebe42a2
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 16 deletions.
18 changes: 18 additions & 0 deletions .github/release-please/config.json
@@ -0,0 +1,18 @@
{
"release-type": "node",
"prerelease": true,
"versioning": "prerelease",
"include-component-in-tag": false,
"changelog-sections": [
{ "type": "feat", "section": "Features", "hidden": false },
{ "type": "fix", "section": "Bug Fixes", "hidden": false },
{ "type": "docs", "section": "Documentation", "hidden": false },
{ "type": "build", "section": "Build Related", "hidden": false },
{ "type": "chore", "section": "Chores", "hidden": false },
{ "type": "perf", "section": "Chores", "hidden": false },
{ "type": "ci", "section": "Chores", "hidden": false },
{ "type": "refactor", "section": "Chores", "hidden": false },
{ "type": "test", "section": "Chores", "hidden": false }
],
"packages": { ".": {} }
}
1 change: 1 addition & 0 deletions .github/release-please/manifest.json
@@ -0,0 +1 @@
{ ".": "17.0.0-3" }
20 changes: 4 additions & 16 deletions .github/workflows/release-please.yml
Expand Up @@ -14,21 +14,9 @@ jobs:
- uses: google-github-actions/release-please-action@v4
id: release
with:
release-type: node
prerelease: beta
package-name: 'eslint-plugin-n'
changelog-types: >
[
{ "type": "feat", "section": "Features", "hidden": false },
{ "type": "fix", "section": "Bug Fixes", "hidden": false },
{ "type": "docs", "section": "Documentation", "hidden": false },
{ "type": "build", "section": "Build Related", "hidden": false },
{ "type": "chore", "section": "Chores", "hidden": false },
{ "type": "perf", "section": "Chores", "hidden": false },
{ "type": "ci", "section": "Chores", "hidden": false },
{ "type": "refactor", "section": "Chores", "hidden": false },
{ "type": "test", "section": "Chores", "hidden": false }
]
config-file: .github/release-please/config.json
manifest-file: .github/release-please/manifest.json

- uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v4
Expand All @@ -38,7 +26,7 @@ jobs:
if: ${{ steps.release.outputs.release_created }}
- run: |
npm install
npm publish --provenance
npm publish --provenance --tag next
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
if: ${{ steps.release.outputs.release_created }}
Expand Down

0 comments on commit ebe42a2

Please sign in to comment.