@@ -52,21 +52,27 @@ jobs:
5252 if : steps.diff.outputs.changed == 'true' || github.event_name == 'workflow_dispatch'
5353 run : bun run test
5454
55- - name : Bump version, commit, tag, push
55+ - name : Bump version and rebuild
5656 if : steps.diff.outputs.changed == 'true' || github.event_name == 'workflow_dispatch'
5757 run : |
58- git config user.name "github-actions[bot]"
59- git config user.email "github-actions[bot]@users.noreply.github.com"
6058 npm version ${{ github.event.inputs.version_bump || 'patch' }} --no-git-tag-version
6159 VERSION=$(node -p "require('./package.json').version")
6260 echo "export const VERSION = '$VERSION';" > src/version.ts
63- git add package.json src/version.ts specs/openapi.json src/
64- git commit -m "release: v$VERSION"
65- git tag "v$VERSION"
66- git push --follow-tags
61+ bun run build
6762
6863 - name : Publish to npm
6964 if : steps.diff.outputs.changed == 'true' || github.event_name == 'workflow_dispatch'
7065 run : |
7166 npm install -g npm@latest
7267 npm publish --access public --provenance
68+
69+ - name : Commit, tag, push
70+ if : steps.diff.outputs.changed == 'true' || github.event_name == 'workflow_dispatch'
71+ run : |
72+ git config user.name "github-actions[bot]"
73+ git config user.email "github-actions[bot]@users.noreply.github.com"
74+ VERSION=$(node -p "require('./package.json').version")
75+ git add package.json src/version.ts specs/openapi.json src/
76+ git commit -m "release: v$VERSION"
77+ git tag "v$VERSION"
78+ git push --follow-tags
0 commit comments