Skip to content

Commit 8120bfb

Browse files
committed
extract version
1 parent f319ba6 commit 8120bfb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1321,6 +1321,14 @@ jobs:
13211321
server-password: MAVEN_PASSWORD
13221322
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
13231323
gpg-passphrase: GPG_PASSPHRASE
1324+
1325+
- if: steps.changed-files.outputs.java_webjar_package_any_changed == 'true'
1326+
name: Extract version from package.json
1327+
working-directory: integrations/java/webjar
1328+
run: |
1329+
VERSION=$(node -p "require('./package.json').version")
1330+
echo "VERSION=$VERSION" >> $GITHUB_ENV
1331+
13241332
- if: steps.changed-files.outputs.java_webjar_package_any_changed == 'true'
13251333
name: Set version in pom.xml (using the version from package.json)
13261334
working-directory: integrations/java/webjar

0 commit comments

Comments
 (0)