@@ -32,13 +32,11 @@ jobs:
3232 - name : Setup Node
3333 uses : actions/setup-node@v4
3434 with :
35- node-version : " 18 "
35+ node-version : " 24 "
3636
3737 - name : Build
38- run : . /gradlew -Pversion=$VERSION clean check tools:cli-application:shadowJar
38+ run : export VERSION="1.0.0-`date '+%Y%m%d%H%M%S'`"; . /gradlew -Pversion=$VERSION clean check tools:cli-application:shadowJar writeVersionToReadme
3939 env :
40- SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
41- SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
4240 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4341
4442 - uses : ncipollo/release-action@v1
4846 name : " Latest"
4947 tag : " latest"
5048
49+ - name : Commit and push api-reference to branch
50+ uses : planetscale/ghcommit-action@v0.2.21
51+ with :
52+ file_pattern : " scripts/install.sh"
53+ repo : ${{ github.repository }}
54+ branch : ${{ github.ref_name }}
55+ commit_message : " TASK: Updating version in README"
56+ env :
57+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
58+
5159 release_tag :
5260 permissions :
5361 id-token : write
@@ -68,21 +76,15 @@ jobs:
6876 distribution : ' temurin'
6977 java-version : ' 11'
7078
71- - run : scripts/setup-signing-key.sh
72- env :
73- DECRYPTER : ${{ secrets.DECRYPTER }}
74- SIGNING_KEY : ${{ secrets.SIGNING_KEY }}
75- PASSPHRASE : ${{ secrets.PASSPHRASE }}
76- GRADLE_PUBLISH_KEY : ${{ secrets.GRADLE_PUBLISH_KEY }}
77- GRADLE_PUBLISH_SECRET : ${{ secrets.GRADLE_PUBLISH_SECRET }}
78-
79- - name : Build and Release
80- run : ./gradlew -Pversion=${{ github.ref_name }} clean check publishMavenPublicationToSonatype closeAndReleaseSonatypeStagingRepository
79+ - name : Build
80+ run : ./gradlew -Pversion=${{ github.ref_name }} clean check tools:cli-application:shadowJar
8181 env :
82- SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
83- SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
8482 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8583
84+ - uses : ncipollo/release-action@v1
85+ with :
86+ artifacts : " rmf-codegen.jar"
87+
8688 # Configure npm for OIDC authentication with trusted publishing
8789 # This must be done after CI setup to ensure npm is properly configured
8890
9597
9698 - name : Build NPM package
9799 run : |
98- ./gradlew -Pversion=${{ github.ref_name }} tools:cli-application:shadowJar
99100 cp rmf-codegen.jar node/rmf-codegen/bin
100101
101102 - name : Verify npm OIDC configuration
0 commit comments