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@2.3.1/schema.json",
"$schema": "https://unpkg.com/@changesets/config@4.0.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
Expand Down
19 changes: 11 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
fetch-depth: 0
- name: Get tags
run: git fetch --tags origin
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: 24
- name: Install Node Dependencies
run: npm install
- name: Setup Ruby
Expand All @@ -25,17 +29,16 @@
ruby-version: 3.0
- name: Create Release Pull Request
id: changesets
uses: changesets/action@v1
uses: changesets/action@v2

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changesets/action@v2 requires Changesets CLI v3. src/index.ts calls validateChangesetsCliVersion() before anything else and throws because this repo declares @changesets/cli: ^2.26.2 (lockfile resolves 2.31.0 — v2). It will fail with: "...Changesets CLI v2 is not supported; use Changesets action v1 instead...".

Even after fixing that, this same step still passes the removed inputs title/commit/version (v2 throws on these — use pr-title/commit-message/version-script), the env.GITHUB_TOKEN no longer configures the action (use the github-token input), and the downstream gate on line 36 uses the old output hasChangesets (now has-changesets), which would silently disable the gem publish step.

with:
title: 'New Release'
commit: 'Release new version'
version: npm run version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
pr-title: 'New Release'
commit-message: 'Release new version'
version-script: npm run version
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Create new release
if: steps.changesets.outputs.hasChangesets == 'false'
if: steps.changesets.outputs.has-changesets == 'false'
run: |
npx changeset tag && git push origin --tags
npx changeset git-tag && git push origin --tags
COMMIT_TAG=$(git tag --points-at HEAD)
if [ -n "$COMMIT_TAG" ]; then
echo "A tag is attached to HEAD. Creating a new release..."
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"version": "changeset version && PACKAGE_VERSION=$(node -p \"require('./package.json').version\") && sed -i \"s/ VERSION .*/ VERSION = \\\"$PACKAGE_VERSION\\\"/\" lib/evervault/version.rb"
},
"dependencies": {
"@changesets/cli": "^2.26.2"
"@changesets/cli": "^3.0.0"
}
}
Loading