Skip to content

Commit c232026

Browse files
update action to bump version as well
1 parent ea064c1 commit c232026

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

.github/workflows/publish.yml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,35 @@ jobs:
99
steps:
1010
- name: Checkout repository
1111
uses: actions/checkout@v4
12+
with:
13+
token: ${{ secrets.GITHUB_TOKEN }}
14+
ref: main
15+
16+
- name: Setup Git identity
17+
run: |
18+
git config user.name "bot-harness"
19+
git config user.email "[email protected]"
1220
1321
- name: Setup pnpm
1422
uses: pnpm/action-setup@v4
1523

16-
- name: Install and build dependencies
24+
- name: Install dependencies
25+
run: pnpm install
26+
27+
- name: Bump version for packages/ui
1728
run: |
18-
pnpm install
19-
pnpm build
29+
cd packages/ui
30+
pnpm version patch --no-git-tag-version
31+
cd ../..
32+
git add packages/ui/package.json
33+
git commit -m "chore(ui): bump version"
34+
git push origin main
35+
36+
- name: Build packages
37+
run: pnpm build
2038

2139
- name: Authenticate to npm
22-
run: |
23-
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_PUBLISH_TOKEN }}" > ~/.npmrc
40+
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_PUBLISH_TOKEN }}" > ~/.npmrc
2441

2542
- name: Publish packages to npm
2643
run: pnpm publish:all

0 commit comments

Comments
 (0)