Skip to content

Commit 7fc2275

Browse files
committed
Prepare main branch for v3 alpha
1 parent 397e81e commit 7fc2275

11 files changed

Lines changed: 62 additions & 17 deletions

File tree

.ado/publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,11 @@ extends:
110110

111111
# TODO: figure out if this should bump or not (currently does bump)
112112
# and currently uses a prerelease prefix of 'test' to avoid interfering with real versions
113+
# TODO (release): change back to:
114+
# yarn beachball publish --prerelease-prefix test -y --no-push --pack-to-path '$(Build.StagingDirectory)/pkg'
113115
- script: |
114-
yarn beachball publish --prerelease-prefix test -y --no-push --pack-to-path '$(Build.StagingDirectory)/pkg'
115-
displayName: 'Pack packages'
116+
yarn release:canary --no-push --pack-to-path '$(Build.StagingDirectory)/pkg'
117+
displayName: 'Pack packages (canary)'
116118
117119
- script: |
118120
ls -R '$(Build.StagingDirectory)/pkg'

.github/pull_request_template.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<!--
2+
The `main` branch of beachball is currently being used for development of a new major version. If this is a non-breaking change which you'd like to pick up right away in beachball v2, it should target the `v2` branch instead of `main`.
3+
-->
4+
5+
<!-- Don't forget to include a change file! -->

.github/workflows/docsite.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Check out code
2525
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2626

27-
# Prereleases from main are disabled until the canary/prerelease flow is fixed
27+
# TODO (release): release from main
2828
- name: Verify v2 branch
2929
run: |
3030
if [[ "${GITHUB_REF}" != "refs/heads/v2" ]]; then

.github/workflows/pr.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
1-
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3-
41
name: PR
52

63
on:
74
pull_request:
8-
branches: [main]
5+
branches: [main, v2]
96
push:
10-
branches: [main]
7+
branches: [main, v2]
118

129
concurrency:
1310
# For PRs, use the ref (branch) in the concurrency group so that new pushes cancel any old runs.
1411
# For pushes to main, ideally we wouldn't set a concurrency group, but github actions doesn't
1512
# support conditional blocks of settings, so we use the SHA so the "group" is unique.
16-
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.sha || github.ref }}
13+
group: ${{ github.workflow }}-${{ (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/v2') && github.sha || github.ref }}
1714
cancel-in-progress: true
1815

1916
permissions: {}

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ jobs:
5656

5757
- run: yarn test --verbose
5858

59-
- name: Publish package
59+
# TODO (release): switch back to regular release
60+
- name: Publish package (canary)
6061
run: |
6162
git config user.email "kchau@microsoft.com"
6263
git config user.name "Ken Chau"
@@ -68,6 +69,6 @@ jobs:
6869
# Add a token to the remote URL for auth during release
6970
git remote set-url origin "https://$REPO_PAT@github.com/$GITHUB_REPOSITORY"
7071
71-
yarn release
72+
yarn release:canary
7273
env:
7374
REPO_PAT: ${{ secrets.REPO_PAT }}

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
# [beachball](https://microsoft.github.io/beachball/) monorepo
22

33
the sunniest version bumping tool - see [`packages/beachball`](./packages/beachball) for details
4+
5+
## `main` is currently the development branch for beachball v3 (alpha)
6+
7+
The code for beachball v2 (`latest`) is in the `v2` branch. If you're making a PR with a non-breaking change, it should target the `v2` branch.

beachball.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@ const config = {
44
access: 'public',
55
branch: 'main',
66
commit: false,
7-
disallowedChangeTypes: ['major'],
87
groupChanges: true,
98
ignorePatterns: ['.*ignore', '.eslintrc.js', 'jest.*.js', 'src/__*/**'],
9+
// TODO (release): change back to major
10+
disallowedChangeTypes: ['prerelease'],
11+
// TODO (release): remove
12+
canaryName: 'alpha',
1013
};
1114

1215
module.exports = config;
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"type": "none",
5+
"comment": "Start preparing for v3 release",
6+
"packageName": "beachball",
7+
"email": "elcraig@microsoft.com",
8+
"dependentChangeType": "none"
9+
}
10+
]
11+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"lint:versions": "yarn syncpack:check",
3434
"lint:marketplace": "node scripts/lintMarketplace.js",
3535
"postinstall": "patch-package",
36-
"release": "yarn beachball publish -y",
36+
"release:canary": "yarn beachball canary -y",
3737
"release:docs": "echo \"Run this from the docs folder instead\" && exit 1",
3838
"syncpack:check": "syncpack list-mismatches",
3939
"syncpack:update": "syncpack fix-mismatches",

packages/beachball/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "beachball",
3-
"version": "2.65.3",
3+
"version": "3.0.0-alpha.0",
44
"description": "The Sunniest Semantic Version Bumper",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)