Skip to content

Commit f483e82

Browse files
committed
ci: fix release script
1 parent d8e29d7 commit f483e82

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.github/workflows/release.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ jobs:
3131
with:
3232
commit: "chore(release): update release & CHANGELOG.md"
3333
title: "📦 Update Packages Version"
34-
publish: npx @changesets/cli version && npx @qingshaner/jsr-release --allowDirty version --sync
35-
version: npx @changesets/cli publish
34+
version: npm run version
35+
publish: echo "This should be the publish to npm command"
3636
env:
3737
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3838

3939
- name: Publish to jsr.io
4040
if: steps.changesets.outputs.published == 'true'
41-
run: pnpx @qingshaner/jsr-release publish --changesetReleases='${{ steps.changesets.outputs.publishedPackages }}'
41+
run: npx @qingshaner/jsr-release publish --changesetReleases='${{ steps.changesets.outputs.publishedPackages }}'

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
22
"name": "@hebilicious/cssforge",
3-
"version": "0.0.0"
3+
"version": "0.0.0",
4+
"scripts": {
5+
"version": "npx @changesets/cli version && npx @qingshaner/jsr-release --allowDirty version --sync"
6+
}
47
}

version.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
npx @changesets/cli version
2+
npx @qingshaner/jsr-release --allowDirty version --sync

0 commit comments

Comments
 (0)