Skip to content
Open
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
4 changes: 0 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,3 @@ updates:
actions:
patterns:
- "*"
ignore:
# v2 needs @changesets/cli v3 in every caller, so bump it manually
- dependency-name: "changesets/action"
update-types: ["version-update:semver-major"]
14 changes: 6 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,10 @@ jobs:

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@a45c4d594aa4e2c509dc14a9f2b3b67ba3780d0d # v1.9.0
uses: changesets/action@ae32849d5ba541f9ae29e40e22a623bc13562f51 # v2.1.2
with:
version: pnpm exec changeset version
publish: pnpm exec changeset publish
commit: "[ci] release"
title: "[ci] release"
setupGitUser: false
env:
GITHUB_TOKEN: ${{ steps.bot-token.outputs.token }}
version-script: pnpm exec changeset version
publish-script: pnpm exec changeset publish
commit-message: "[ci] release"
pr-title: "[ci] release"
github-token: ${{ steps.bot-token.outputs.token }}
12 changes: 11 additions & 1 deletion docs/publish.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,17 @@

Creates release pull requests or publishes packages to npm using [changesets](https://github.com/changesets/changesets).

When pending changesets exist, this workflow opens a release PR. When that PR is merged, it publishes the packages to npm.
When pending changesets exist, this workflow opens a release PR. When that PR is merged, it publishes the packages to npm. Release commits and tags are pushed through the GitHub API, so they are signed and attributed to `bombshell-bot[bot]`.

## Requirements

This workflow uses [`changesets/action`](https://github.com/changesets/action) v2, which requires `@changesets/cli` v3 in the calling repository. See the [Changesets migration guide](https://changesets.dev/guide/migration) for how to upgrade.

Repositories still on `@changesets/cli` v2 should pin this workflow to `0c11c22d745695ae196865bca0d0cc177263bee9` until they migrate:

```yaml
uses: bombshell-dev/automation/.github/workflows/publish.yml@0c11c22d745695ae196865bca0d0cc177263bee9
```

## Inputs

Expand Down