-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add jar to embed and bundle JS server as a jar
- Loading branch information
1 parent
01ed2c9
commit 93abb1d
Showing
9 changed files
with
254 additions
and
832 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,16 +11,18 @@ concurrency: | |
group: publish-${{ github.ref }} | ||
cancel-in-progress: false | ||
|
||
env: | ||
GRADLE_SWITCHES: --console=plain --info --stacktrace --warning-mode=all --no-daemon | ||
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.gradle_enterprise_access_key }} | ||
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.ossrh_username }} | ||
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.ossrh_token }} | ||
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.ossrh_signing_key }} | ||
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.ossrh_signing_password }} | ||
RELEASE_BUILD: "true" | ||
RELEASE_PUBLICATION: "true" | ||
|
||
jobs: | ||
release: | ||
uses: openrewrite/gh-automation/.github/workflows/publish-gradle.yml@main | ||
secrets: | ||
gradle_enterprise_access_key: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} | ||
ossrh_username: ${{ secrets.OSSRH_USERNAME }} | ||
ossrh_token: ${{ secrets.OSSRH_TOKEN }} | ||
ossrh_signing_key: ${{ secrets.OSSRH_SIGNING_KEY }} | ||
ossrh_signing_password: ${{ secrets.OSSRH_SIGNING_PASSWORD }} | ||
release-js: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
|
@@ -35,6 +37,16 @@ jobs: | |
node-version: '20.x' | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- uses: actions/[email protected] | ||
with: | ||
distribution: temurin | ||
java-version: 21 | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v4 | ||
with: | ||
develocity-access-key: ${{ secrets.gradle_enterprise_access_key }} | ||
|
||
- name: Update package.json version from tag | ||
working-directory: openrewrite | ||
run: | | ||
|
@@ -59,5 +71,36 @@ jobs: | |
npm ci | ||
npm run build | ||
npm publish --access public | ||
npm pack | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
- name: npm install embedded | ||
run: | | ||
npm install @openrewrite/rewrite-remote | ||
npm install ../../../../openrewrite/openrewrite-rewrite-*.tgz | ||
working-directory: rewrite-javascript-remote-server/src/main/resources | ||
|
||
- name: publish-candidate | ||
if: contains(github.ref, '-rc.') | ||
run: | | ||
./gradlew \ | ||
${{ env.GRADLE_SWITCHES }} \ | ||
-Preleasing \ | ||
-Prelease.disableGitChecks=true \ | ||
-Prelease.useLastTag=true \ | ||
candidate \ | ||
publish \ | ||
closeAndReleaseSonatypeStagingRepository | ||
- name: publish-release | ||
if: (!contains(github.ref, '-rc.')) | ||
run: | | ||
./gradlew \ | ||
${{ env.GRADLE_SWITCHES }} \ | ||
-Preleasing \ | ||
-Prelease.disableGitChecks=true \ | ||
-Prelease.useLastTag=true \ | ||
final \ | ||
publish \ | ||
closeAndReleaseSonatypeStagingRepository |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,4 @@ yarn-error.log* | |
.env.*.local | ||
|
||
tsconfig.build.tsbuildinfo | ||
/openrewrite-rewrite-*.tgz |
Oops, something went wrong.