-
Notifications
You must be signed in to change notification settings - Fork 42
/
.releaserc.yml
47 lines (46 loc) · 2.13 KB
/
.releaserc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
branches:
- name: main
- name: next
prerelease: true
plugins:
- '@semantic-release/commit-analyzer'
- '@semantic-release/release-notes-generator'
- '@semantic-release/changelog'
# `@semantic-release/npm` must be before `@semantic-release/git`
# so the `@semantic-release/npm` plugin can properly update the version
# in the package*.json files before we commit the changes in `@semantic-release/git`
- '@semantic-release/npm'
- [
'@semantic-release/exec',
{
# Runs two commands:
# 1. Updates our action.yml file to reflect current Docker image version.
# This needs to happen before `@semantic-release/git` so we can commit this file.
# 2. Builds and pushes the Docker image
'prepareCmd': './bin/set-action-image.js && ./bin/docker.js',
# Adds a major version git tag (e.g., v8) as a convenience for GitHub Actions users
# We need to run this in the publish phase so it can be force-pushed separately from the other tags
'publishCmd': './bin/set-major-version-tag.js push',
},
]
- [
'@semantic-release/git',
{
assets: ['action.yml', 'CHANGELOG.md', 'package.json', 'package-lock.json'],
message: "build(release): 🚀 v${nextRelease.version} 🦉\n\n${nextRelease.notes}\n[skip ci]",
},
]
- [
'@semantic-release/exec',
{
# Verify existence of gh and docker CLIs
'verifyConditionsCmd': './bin/verify-clis.sh',
# Sets the next version as a GitHub Actions output parameter for usage in subsequent workflow steps
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-output-parameter
'verifyReleaseCmd': 'echo nextVersion=${nextRelease.version} >> $GITHUB_OUTPUT',
# Adds an additional git tag without the `v` prefix as a convenience for GitHub Actions users
'prepareCmd': 'git tag ${nextRelease.version}',
# Lightweight alternative to `@semantic-release/github` that creates a draft GitHub release
'publishCmd': 'gh release create ${nextRelease.version} --draft --generate-notes',
},
]