-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
14 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,19 +102,16 @@ steps: | |
key: "v1.1-cache-dev-{{ checksum 'yarn.lock' }}" | ||
paths: [".yarn/cache/"] | ||
|
||
# Auto deploys branches | ||
- label: "[Browser] Release Branch (non-prod) :rocket:" | ||
branches: "!master !v* !publish-test" | ||
- label: "[Browser] Release to CDN :rocket:" | ||
branches: "!v* !@segment/* !publish-test" | ||
agents: | ||
queue: v1 | ||
commands: | ||
- npm config set "//registry.npmjs.org/:_authToken" $${NPM_TOKEN} | ||
- echo "--- Install dependencies" | ||
- PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 HUSKY=0 yarn install --immutable | ||
- echo "--- Build bundles" | ||
- yarn run -T browser+deps build | ||
- echo "+++ Release Branch" | ||
- NODE_ENV=production yarn run -T browser exec bash ./scripts/release.sh | ||
- echo "+++ Release to CDN" | ||
- yarn run -T browser release:cdn | ||
plugins: | ||
- ssh://[email protected]/segmentio/cache-buildkite-plugin#v2.0.0: | ||
key: "v1.1-cache-dev-{{ checksum 'yarn.lock' }}" | ||
|
@@ -138,7 +135,7 @@ steps: | |
paths: [".yarn/cache/"] | ||
|
||
# Deploy and NPM publish releases | ||
- label: "Release / Publish Packages :rocket:" | ||
- label: "[Browser] Publish Packages to NPM :rocket:" | ||
if: | | ||
// Only run when Version Packages PR is merged in | ||
build.message =~ /^Version Packages/ && | ||
|
@@ -160,29 +157,6 @@ steps: | |
key: "v1.1-cache-dev-{{ checksum 'yarn.lock' }}" | ||
paths: [".yarn/cache/"] | ||
|
||
# if you are in a weird state and need to force release to cdn -- | ||
# git commit --allow-empty -m "Force Release to CDN" | ||
- label: "Release to CDN (manual) :rocket:" | ||
if: | | ||
// Only run when Version Packages PR is merged in | ||
build.message =~ /^Force Release to CDN/ && | ||
build.branch == "master" | ||
agents: | ||
queue: v1 | ||
commands: | ||
- npm config set "//registry.npmjs.org/:_authToken" $${NPM_TOKEN} | ||
- git config --global user.name "buildkite-agent" | ||
- git config --global user.email "[email protected]" | ||
- echo "--- Install dependencies" | ||
- PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 HUSKY=0 yarn install --immutable | ||
- echo "+++ Release packages" | ||
- yarn build | ||
- yarn run -T browser release:cdn | ||
plugins: | ||
- ssh://[email protected]/segmentio/cache-buildkite-plugin#v2.0.0: | ||
key: "v1.1-cache-dev-{{ checksum 'yarn.lock' }}" | ||
paths: [".yarn/cache/"] | ||
|
||
- label: "Snyk :lock:" | ||
agents: | ||
queue: v1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,6 +49,12 @@ Information is in the [@changesets automation instructions](https://github.com/c | |
### How does the changeset bot and changeset github action work? | ||
[Check out the @changesets automation instructions](https://github.com/changesets/changesets/blob/main/docs/automating-changesets.md#automating-changesets) | ||
|
||
### What does `yarn release` do? | ||
- run prepare scripts | ||
- publish all packages to npm | ||
- pushes tags to repo | ||
- triggers a github release on CI (via tags) | ||
- triggers a CDN release | ||
|
||
### I don't want to use automation, how do I manually create a release? | ||
|
||
|
@@ -58,8 +64,7 @@ export GITHUB_TOKEN="???" ## changelog generator requirement (https://github.com | |
yarn update-versions-and-changelogs && ## bump + generate changelog + delete old changesets | ||
git add . && # add generated artifacts | ||
git commit -m "v1.X.X" && | ||
yarn release && ### run prepare scripts + publish all packages to npm | ||
git push --follow-tags ### push generated tags to git (e.g @segment/[email protected]) | ||
yarn release | ||
``` | ||
|
||
### Feature branches | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters