Skip to content

Commit f80696a

Browse files
committed
chore: add release-please manifest config
- Add release-please-config.json with package configuration - Add .release-please-manifest.json to track current version - Split workflow into separate release-please and publish jobs - Add issues permission to workflow
1 parent f065bce commit f80696a

File tree

3 files changed

+24
-9
lines changed

3 files changed

+24
-9
lines changed

.github/workflows/release.yaml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,31 @@ on:
66
permissions:
77
contents: write
88
pull-requests: write
9+
issues: write
910
id-token: write
1011

1112
name: release
1213
jobs:
1314
release-please:
1415
runs-on: ubuntu-latest
16+
outputs:
17+
release_created: ${{ steps.release.outputs.release_created }}
1518
steps:
1619
- uses: googleapis/release-please-action@v4
1720
id: release
18-
with:
19-
release-type: node
20-
# The logic below handles the npm publication:
21+
22+
publish:
23+
needs: release-please
24+
if: ${{ needs.release-please.outputs.release_created }}
25+
runs-on: ubuntu-latest
26+
permissions:
27+
contents: read
28+
id-token: write
29+
steps:
2130
- uses: actions/checkout@v4
22-
# these if statements ensure that a publication only occurs when
23-
# a new release is created:
24-
if: ${{ steps.release.outputs.release_created }}
2531
- uses: actions/setup-node@v4
2632
with:
2733
node-version: 24
2834
registry-url: 'https://registry.npmjs.org'
29-
if: ${{ steps.release.outputs.release_created }}
3035
- run: npm ci
31-
if: ${{ steps.release.outputs.release_created }}
3236
- run: npm publish --provenance --access public
33-
if: ${{ steps.release.outputs.release_created }}

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "1.8.19"
3+
}

release-please-config.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"packages": {
3+
".": {
4+
"release-type": "node",
5+
"package-name": "@postalsys/email-ai-tools",
6+
"pull-request-title-pattern": "chore${scope}: release ${version} [skip-ci]"
7+
}
8+
}
9+
}

0 commit comments

Comments
 (0)