Skip to content

Commit

Permalink
use standard version and give up on ai :)
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliusKoronciCH committed Apr 4, 2024
1 parent 6974685 commit 5c354f9
Show file tree
Hide file tree
Showing 5 changed files with 558 additions and 14 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@ jobs:
- name: Publish to npm (on merge to main)
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
run: |
current_version=$(node -p "require('./package.json').version")
next_version=$(echo $current_version | awk -F'[.-]' '{print $1"."$2"."$3+1"-beta.1"}')
jq --arg new_version "$next_version" '.version = $new_version' package.json > tmp.json && mv tmp.json package.json
yarn standard-version
yarn publish --tag beta
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.CHANGELOG_TOKEN }}
9 changes: 9 additions & 0 deletions .versionrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"bumpFiles": [
{
"filename": "package.json",
"type": "json"
}
],
"prerelease": "beta"
}
Binary file modified .yarn/install-state.gz
Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"prettier": "^3.2.5",
"react": "18.2.0",
"react-dom": "^18.2.0",
"standard-version": "^9.5.0",
"storybook": "^7.6.17",
"typescript": "*",
"vite": "^5.1.4",
Expand Down
Loading

0 comments on commit 5c354f9

Please sign in to comment.