Skip to content

Commit

Permalink
fix: test release workflow (#466)
Browse files Browse the repository at this point in the history
* test: use branch version to test release workflow

* change for releaserc
  • Loading branch information
yj-yan authored Apr 1, 2024
1 parent 09c5bfa commit 1595246
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 13 deletions.
33 changes: 23 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# syntax, such as anchors, will be fixed automatically.
version: 2.1
orbs:
shared: getoutreach/shared@dev:2.26.0-rc.1
shared: getoutreach/shared@dev:test_release
queue: eddiewebb/queue@2.2.1

parameters:
Expand Down Expand Up @@ -37,9 +37,7 @@ test: &test
# Branches used for releasing code, pre-release or not
release_branches: &release_branches # Release branch
- release
# Pre-releases branch
- "rc"
# Unstable branch, e.g. HEAD development
# Pre-release and Unstable branch, e.g. HEAD development
- "main"

jobs:
Expand Down Expand Up @@ -86,7 +84,7 @@ workflows:
## <</Stencil::Block>>
### Start jobs inserted by other modules
### End jobs inserted by other modules
- shared/release: &release
- shared/pre-release: &pre-release
dryrun: false
context: *contexts
release_failure_slack_channel: "#dt-notifications"
Expand All @@ -100,15 +98,30 @@ workflows:
- shared/test
filters:
branches:
only: *release_branches

# Dryrun release for PRs.
- shared/release:
<<: *release
only:
- main
# Dryrun for PRs
- shared/pre-release: &pre-release
dryrun: true
context: *contexts
## <<Stencil::Block(circleReleaseExtra)>>

## <</Stencil::Block>>
requires:
## <<Stencil::Block(circleReleaseRequires)>>

## <</Stencil::Block>>
- shared/test
filters:
branches:
ignore: *release_branches
# stable release for release branch
- shared/release:
context: *contexts
dryrun: false
filters:
branches:
only: release
- shared/test:
<<: *test
## <<Stencil::Block(circleSharedTestExtra)>>
Expand Down
4 changes: 2 additions & 2 deletions .releaserc.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
preset: conventionalcommits
branches:
- name: rc
prerelease: "rc"
- name: main
prerelease: rc
- name: release
plugins:
- - "@semantic-release/commit-analyzer"
Expand Down
3 changes: 2 additions & 1 deletion service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ modules:
- name: github.com/getoutreach/stencil-circleci
- name: github.com/getoutreach/stencil-base
- name: github.com/getoutreach/devbase
channel: rc
url: https://github.com/getoutreach/devbase
version: yjyan/change-prerelease
- name: github.com/getoutreach/stencil-golang

0 comments on commit 1595246

Please sign in to comment.