-
Notifications
You must be signed in to change notification settings - Fork 10
ci: add changesets release workflow #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,47 @@ | ||||||||
| name: Release | ||||||||
|
|
||||||||
| on: | ||||||||
| push: | ||||||||
| branches: [main] | ||||||||
|
|
||||||||
| concurrency: | ||||||||
| group: ${{ github.workflow }}-${{ github.ref }} | ||||||||
| cancel-in-progress: false | ||||||||
|
|
||||||||
| jobs: | ||||||||
| release: | ||||||||
| name: Version or publish | ||||||||
| runs-on: ubuntu-latest | ||||||||
| permissions: | ||||||||
| contents: write | ||||||||
| pull-requests: write | ||||||||
| id-token: write | ||||||||
|
|
||||||||
| steps: | ||||||||
| - uses: actions/checkout@v4 | ||||||||
| with: | ||||||||
| fetch-depth: 0 | ||||||||
|
|
||||||||
| - uses: pnpm/action-setup@v4 | ||||||||
|
|
||||||||
| - uses: actions/setup-node@v4 | ||||||||
| with: | ||||||||
| node-version: 20 | ||||||||
| cache: pnpm | ||||||||
| registry-url: https://registry.npmjs.org | ||||||||
|
|
||||||||
| - run: pnpm install --frozen-lockfile | ||||||||
|
|
||||||||
| - run: pnpm build | ||||||||
|
|
||||||||
| - name: Create Release PR or publish | ||||||||
| uses: changesets/action@v1 | ||||||||
| with: | ||||||||
| version: pnpm changeset version | ||||||||
| publish: pnpm changeset publish | ||||||||
| commit: "chore(release): version packages" | ||||||||
| title: "chore(release): version packages" | ||||||||
| env: | ||||||||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||||||
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||||||||
|
||||||||
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pnpm buildrunsturbo run buildacross the whole monorepo. In this repo,apps/marketinghas aprebuildthat regenerates tracked files underapps/marketing/src/generated/*, so running build here can dirty the workspace and accidentally include unrelated generated diffs in the Changesets version PR/publish commit. Consider removing this step, or scoping the build to the publishable package(s) (e.g., only@web-kits/audio) and/or running build only when actually publishing.