Skip to content

Commit 2cfaf26

Browse files
authored
chore: update Node.js version to 24 and switch to jq for package meta (#24)
1 parent 81cb3fa commit 2cfaf26

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ jobs:
2121
- run: bun run build
2222
- uses: actions/setup-node@v6
2323
with:
24-
node-version: '22'
25-
registry-url: 'https://registry.npmjs.org'
24+
node-version: '24'
2625
- name: Create Release PR or Detect Publishable Versions
2726
id: changesets
2827
uses: changesets/action@v1
@@ -36,8 +35,8 @@ jobs:
3635
if: steps.changesets.outputs.hasChangesets == 'false'
3736
working-directory: packages/classy-store
3837
run: |
39-
PKG_NAME=$(node -p "require('./package.json').name")
40-
PKG_VERSION=$(node -p "require('./package.json').version")
38+
PKG_NAME=$(jq -r .name package.json)
39+
PKG_VERSION=$(jq -r .version package.json)
4140
if npm view "${PKG_NAME}@${PKG_VERSION}" version 2>/dev/null; then
4241
echo "Version ${PKG_VERSION} already published — skipping."
4342
else

0 commit comments

Comments
 (0)