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
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
"$schema": "https://unpkg.com/@changesets/config@4.0.1/schema.json",
"changelog": [
"@changesets/changelog-github",
{ "repo": "matthewhudson/current-device" }
Expand Down
20 changes: 15 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,26 @@ jobs:
# source tests
- run: pnpm run typecheck
- run: pnpm run test
# changesets/action v2 needs Changesets CLI 3 and renamed its inputs.
#
# The default GITHUB_TOKEN has two limits here: it cannot push a change
# to .github/workflows/* (so the version PR can no longer be updated
# once a workflow file changed on main, which is how release run #47
# failed), and PRs it opens don't trigger the CI workflow. Set a
# CHANGESETS_TOKEN repository secret (fine-grained PAT: Contents,
# Pull requests and Workflows read/write on this repo) to lift both;
# until then the default token is used
- name: Create Release Pull Request or Publish
id: changesets
uses: changesets/action@v2
with:
publish: pnpm run release
commit: "chore: version packages"
title: "chore: version packages"
createGithubReleases: true
github-token: ${{ secrets.CHANGESETS_TOKEN || secrets.GITHUB_TOKEN }}
publish-script: pnpm run release
commit-message: "chore: version packages"
pr-title: "chore: version packages"
create-github-releases: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.CHANGESETS_TOKEN || secrets.GITHUB_TOKEN }}
NPM_CONFIG_PROVENANCE: true
- name: Create GitHub Release (fallback)
if: steps.changesets.outputs.published == 'true'
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
},
"devDependencies": {
"@arethetypeswrong/cli": "0.18.5",
"@changesets/changelog-github": "0.5.2",
"@changesets/cli": "2.29.8",
"@changesets/changelog-github": "1.0.1",
"@changesets/cli": "3.0.3",
"@playwright/test": "1.63.0",
"@testing-library/react": "^16.3.3",
"@types/jsdom": "^30.0.0",
Expand Down
Loading
Loading