-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add build-ts, npm release, and dependencies on build-ts to be successful for publishing * remove release-ts.yml workflow (added to release.yml) * fix live-run variable
- Loading branch information
1 parent
ef48ccc
commit 09b1c23
Showing
2 changed files
with
73 additions
and
67 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -60,14 +60,54 @@ jobs: | |
- name: Bump and tag project | ||
run: bash ci/scripts/bump-and-tag.bash | ||
env: | ||
LIVE_RUN: ${{ inputs.live_run }} | ||
LIVE_RUN: ${{ inputs.live-run }} | ||
VERSION: ${{ steps.create-release-branch.outputs.version }} | ||
BUMP_DEPS_VERSION: ${{ inputs.zenoh-version }} | ||
BUMP_DEPS_PATTERN: ${{ inputs.zenoh-version && 'zenoh.*' || '' }} | ||
BUMP_DEPS_BRANCH: ${{ inputs.zenoh-version && format('release/{0}', inputs.zenoh-version) || '' }} | ||
GIT_USER_NAME: eclipse-zenoh-bot | ||
GIT_USER_EMAIL: [email protected] | ||
|
||
build-ts: | ||
name: Build Typescript | ||
runs-on: ubuntu-latest | ||
needs: tag | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ needs.tag.outputs.branch }} | ||
|
||
- name: Install Dependencies | ||
uses: borales/actions-yarn@v4 | ||
with: | ||
cmd: install | ||
dir: ./zenoh-ts | ||
|
||
- name: Transpile Code | ||
working-directory: ./zenoh-ts | ||
run: | | ||
yarn run build | ||
- name: Upload zenoh-ts-build | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: zenoh-ts-build | ||
include-hidden-files: true | ||
path: | | ||
zenoh-ts/dist/ | ||
zenoh-ts/package.json | ||
zenoh-ts/LICENSE | ||
zenoh-ts/README.md | ||
- name: Cleanup | ||
working-directory: ./zenoh-ts | ||
if: always() | ||
run: | | ||
rm -rf node_modules | ||
rm -rf dist | ||
rm -rf package-lock.json | ||
build-debian: | ||
name: Build Debian packages | ||
needs: tag | ||
|
@@ -91,8 +131,35 @@ jobs: | |
^zenoh_plugin_remote_api(2)?\.dll$ | ||
secrets: inherit | ||
|
||
npm: | ||
name: Release Zenoh-ts to NPM | ||
runs-on: ubuntu-latest | ||
needs: [tag, build-ts] | ||
steps: | ||
- name: Download zenoh-ts-build | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: zenoh-ts-build | ||
|
||
- name: Publish Typescript to NPM | ||
id: publish | ||
shell: bash | ||
env: | ||
ORG_NPMJS_TOKEN: ${{ secrets.ORG_NPMJS_TOKEN }} | ||
LIVE_RUN: ${{ inputs.live-run || false }} | ||
run: | | ||
readonly live_run=${LIVE_RUN:-false} | ||
npm config set //registry.npmjs.org/:_authToken=\${ORG_NPMJS_TOKEN} | ||
if [ ${live_run} = true ]; then | ||
echo "Releasing to NPM" | ||
npm publish --access public | ||
else | ||
echo "Dry Run" | ||
npm publish --dry-run | ||
fi | ||
cargo: | ||
needs: tag | ||
needs: [tag, build-standalone, build-ts] | ||
name: Publish Cargo crates | ||
uses: eclipse-zenoh/ci/.github/workflows/release-crates-cargo.yml@main | ||
with: | ||
|
@@ -110,7 +177,7 @@ jobs: | |
|
||
debian: | ||
name: Publish Debian packages | ||
needs: [tag, build-debian, cargo] | ||
needs: [tag, build-debian, build-ts, cargo] | ||
uses: eclipse-zenoh/ci/.github/workflows/release-crates-debian.yml@main | ||
with: | ||
no-build: true | ||
|
@@ -123,7 +190,7 @@ jobs: | |
|
||
homebrew: | ||
name: Publish Homebrew formulae | ||
needs: [tag, build-standalone, cargo] | ||
needs: [tag, build-standalone, build-ts, cargo] | ||
uses: eclipse-zenoh/ci/.github/workflows/release-crates-homebrew.yml@main | ||
with: | ||
no-build: true | ||
|
@@ -139,7 +206,7 @@ jobs: | |
|
||
eclipse: | ||
name: Publish artifacts to Eclipse downloads | ||
needs: [tag, build-standalone, cargo] | ||
needs: [tag, build-standalone, build-ts, cargo] | ||
uses: eclipse-zenoh/ci/.github/workflows/release-crates-eclipse.yml@main | ||
with: | ||
no-build: true | ||
|
@@ -155,7 +222,7 @@ jobs: | |
|
||
github: | ||
name: Publish artifacts to GitHub Releases | ||
needs: [tag, build-standalone, cargo] | ||
needs: [tag, build-standalone, build-ts, cargo] | ||
uses: eclipse-zenoh/ci/.github/workflows/release-crates-github.yml@main | ||
with: | ||
no-build: true | ||
|