Skip to content

Commit

Permalink
Fix release automation
Browse files Browse the repository at this point in the history
  • Loading branch information
jviide committed Mar 20, 2024
1 parent 43a1441 commit d2f85db
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/famous-parents-stare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@badrap/valita": patch
---

Fix release automation, name scripts bump/release instead of version/publish
4 changes: 2 additions & 2 deletions .github/workflows/version-or-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ jobs:
id: changesets
uses: changesets/action@v1
with:
version: npm run version
publish: npm run publish
version: npm run bump
publish: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"build:node-cjs": "tsc -p ./tsconfig.build.json --target es2021 --module commonjs --outDir ./dist/node-cjs",
"prepack": "npm run build",
"changeset": "changeset",
"version": "changeset version && sed --in-place \"s/\\\"version\\\": \\\".*\\\"/\\\"version\\\": \\\"$(sed -n 's/^\\s*\\\"version\\\": \\\"\\([^\\\"/]*\\)\\\".*/\\1/p' package.json)\\\"/\" jsr.json",
"publish": "changeset publish && jsr publish"
"bump": "changeset version && sed --in-place \"s/\\\"version\\\": \\\".*\\\"/\\\"version\\\": \\\"$(sed -n 's/^\\s*\\\"version\\\": \\\"\\([^\\\"/]*\\)\\\".*/\\1/p' package.json)\\\"/\" jsr.json",
"release": "changeset publish && jsr publish"
},
"devDependencies": {
"@changesets/changelog-github": "^0.5.0",
Expand Down

0 comments on commit d2f85db

Please sign in to comment.