Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,11 @@ steps:
- PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 HUSKY=0 yarn install --immutable
- echo "+++ Release packages"
- yarn release
- |
curl -X POST -H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token $${GITHUB_TOKEN}" \
https://api.github.com/repos/segmentio/analytics-next/actions/workflows/release-creator.yml/dispatches \
-d '{"ref":"master"}'
plugins:
- ssh://[email protected]/segmentio/cache-buildkite-plugin#v2.0.0:
key: "v1.1-cache-dev-{{ checksum 'yarn.lock' }}"
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/create-github-release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Creating the github release is the final step of the release.
name: Create Github Release
on:
push:
tags:
- "@segment/*"
workflow_dispatch:

jobs:
github_release:
Expand Down
20 changes: 14 additions & 6 deletions RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,22 @@ Information is in the [@changesets automation instructions](https://github.com/c
[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
1. Run prepare scripts
2. Publish all packages to npm, pushes _all_ tags to github (e.g. "@segment/[email protected]", "@segment/[email protected]", etc) (Buildkite)
3. Triggets an update of the github releases page (Github Actions)

### I don't want to use automation, how do I manually create a release?
### How do I fix the repo if all the packages were published, but the CI Failed to update the [github releases page](https://github.com/segmentio/analytics-next/releases)?
```bash
# checkout master so the HEAD is pointing to the "Version Packages" PR
git co master && git pull --ff-only

# Reads from the current tags and create github releases
export GITHUB_TOKEN="???"
yarn scripts create-release-from-tags
```


### I don't want to use automation, how do I manually create a release?
```bash
export GITHUB_TOKEN="???" ## changelog generator requirement (https://github.com/settings/tokens)

Expand Down