Skip to content

Commit

Permalink
update publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
jigsawye committed Nov 11, 2024
1 parent 8772b9c commit 4203c28
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,7 @@ jobs:
id: changesets
uses: changesets/action@v1
with:
publish: |
pnpm publish -r
cargo publish
publish: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"@changesets/changelog-github": "^0.5.0"
},
"scripts": {
"changeset": "changeset"
"changeset": "changeset",
"release": "changeset publish"
}
}
10 changes: 5 additions & 5 deletions packages/swagit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
"swagit": "bin/swagit.js"
},
"optionalDependencies": {
"@swagit/darwin-x64": "workspace:*",
"@swagit/darwin-arm64": "workspace:*",
"@swagit/linux-x64": "workspace:*",
"@swagit/linux-arm64": "workspace:*",
"@swagit/win32-x64": "workspace:*"
"@swagit/darwin-x64": "^1.0.1",
"@swagit/darwin-arm64": "^1.0.1",
"@swagit/linux-x64": "^1.0.1",
"@swagit/linux-arm64": "^1.0.1",
"@swagit/win32-x64": "^1.0.1"
},
"files": [
"bin"
Expand Down

0 comments on commit 4203c28

Please sign in to comment.