Skip to content
This repository was archived by the owner on May 12, 2025. It is now read-only.

Commit 110fb53

Browse files
committed
fix CI
1 parent a9ed4e4 commit 110fb53

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

.github/workflows/publish.yml

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,6 @@ jobs:
5454
echo "Release tag is $TAG_VERSION"
5555
npm version $TAG_VERSION --no-git-tag-version
5656
57-
- name: Commit version updates
58-
working-directory: openrewrite
59-
run: |
60-
git config --global user.name "github-actions[bot]"
61-
git config --global user.email "github-actions[bot]@users.noreply.github.com"
62-
git add package.json package-lock.json
63-
git commit -m "bump version ${GITHUB_REF#refs/tags/}"
64-
git push https://${GH_TOKEN}@github.com/openrewrite/rewrite-javascript.git HEAD:main
65-
env:
66-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
67-
6857
- name: publish-npm
6958
working-directory: openrewrite
7059
run: |
@@ -109,3 +98,21 @@ jobs:
10998
final \
11099
publish \
111100
closeAndReleaseSonatypeStagingRepository
101+
102+
- name: Update package.json version from tag
103+
working-directory: openrewrite
104+
run: |
105+
TAG_VERSION=${GITHUB_REF#refs/tags/}
106+
echo "Release tag is $TAG_VERSION"
107+
npm version $TAG_VERSION --no-git-tag-version
108+
109+
- name: Commit version updates
110+
working-directory: openrewrite
111+
run: |
112+
git config --global user.name "github-actions[bot]"
113+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
114+
git add package.json package-lock.json
115+
git commit -m "bump version ${GITHUB_REF#refs/tags/}"
116+
git push https://${GH_TOKEN}@github.com/openrewrite/rewrite-javascript.git HEAD:main
117+
env:
118+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)