Skip to content

Commit

Permalink
ci(publish): try to fix version bumping
Browse files Browse the repository at this point in the history
  • Loading branch information
nvlang committed Jun 30, 2024
1 parent 9b63432 commit f7682b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/jsr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
run: |
TAG_NAME="${{ github.event.release.tag_name }}"
VERSION=${TAG_NAME#v}
sed -i '' "s/\"version\": \"0.0.0\"/\"version\": \"$VERSION\"/" "deno.jsonc"
sed -i "s/\"version\": \"0.0.0\"/\"version\": \"$VERSION\"/" "deno.jsonc"
- name: Publish to JSR
run: pnpm dlx jsr publish
5 changes: 4 additions & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ jobs:
echo "BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)" >> $GITHUB_ENV

- name: Set package version
run: pnpm version ${{ github.event.release.tag_name }}
run: |
TAG_NAME="${{ github.event.release.tag_name }}"
VERSION=${TAG_NAME#v}
sed -i "s/\"version\": \"0.0.0\"/\"version\": \"$VERSION\"/" "package.json"
- run: pnpm publish --provenance --access public
env:
Expand Down

0 comments on commit f7682b6

Please sign in to comment.