Skip to content

Commit 21ed5e0

Browse files
chore(cicd): Fix release github action (#37)
* chore(cd): Fix semantic-release github action * chore(cd): don't run release action automatically on main
1 parent 4b20090 commit 21ed5e0

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/release_plugin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ on:
55
branches:
66
- development
77
- next
8-
- main
98
workflow_dispatch:
109

1110
permissions:
1211
contents: write
1312
issues: write
1413
deployments: write
14+
id-token: write # to enable use of OIDC for npm provenance
1515

1616
jobs:
1717
setup:

packages/capacitor-plugin/release.config.cjs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@ module.exports = {
88
plugins: [
99
'@semantic-release/commit-analyzer',
1010
'@semantic-release/release-notes-generator',
11-
'@semantic-release/changelog',
11+
[
12+
"@semantic-release/changelog",
13+
{
14+
"changelogFile": "../../CHANGELOG.md"
15+
}
16+
],
1217
'@semantic-release/npm',
1318
[
1419
'@semantic-release/github',
@@ -18,14 +23,14 @@ module.exports = {
1823
releasedLabels: false,
1924
addReleases: 'bottom',
2025
releaseNotes: {
21-
changelogFile: 'CHANGELOG.md'
26+
changelogFile: '../../CHANGELOG.md'
2227
}
2328
}
2429
],
2530
[
2631
'@semantic-release/git',
2732
{
28-
assets: ['CHANGELOG.md', 'package.json'],
33+
assets: ['../../CHANGELOG.md', 'package.json'],
2934
message: 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}'
3035
}
3136
]

0 commit comments

Comments
 (0)