Skip to content

Commit 70da10b

Browse files
authored
ci: fix auto-release (#2174)
1 parent bf27266 commit 70da10b

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.github/workflows/release-automated.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
persist-credentials: false
1414
- uses: actions/setup-node@v2
1515
with:
16-
node-version: 12
16+
node-version: 14
1717
registry-url: https://registry.npmjs.org/
1818
- name: Cache Node.js modules
1919
uses: actions/cache@v2

release.config.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,21 +83,20 @@ async function config() {
8383
['@semantic-release/git', {
8484
assets: [changelogFile, 'package.json', 'package-lock.json', 'npm-shrinkwrap.json'],
8585
}],
86+
['@semantic-release/github', {
87+
successComment: getReleaseComment(),
88+
labels: ['type:ci'],
89+
releasedLabels: ['state:released<%= nextRelease.channel ? `-${nextRelease.channel}` : "" %>']
90+
}],
8691
[
8792
'@saithodev/semantic-release-backmerge',
8893
{
8994
'branches': [
9095
{ from: 'beta', to: 'alpha' },
9196
{ from: 'release', to: 'beta' },
92-
{ from: 'release', to: 'alpha' },
9397
]
9498
}
9599
],
96-
['@semantic-release/github', {
97-
successComment: getReleaseComment(),
98-
labels: ['type:ci'],
99-
releasedLabels: ['state:released<%= nextRelease.channel ? `-${nextRelease.channel}` : "" %>']
100-
}],
101100
],
102101
};
103102

0 commit comments

Comments
 (0)