Skip to content

Commit

Permalink
Merge branch 'main' into webpack_experiments
Browse files Browse the repository at this point in the history
  • Loading branch information
milyin committed Dec 12, 2024
2 parents 2974897 + 7a78446 commit 001e899
Show file tree
Hide file tree
Showing 17 changed files with 1,082 additions and 263 deletions.
61 changes: 0 additions & 61 deletions .github/workflows/release-ts.yml

This file was deleted.

79 changes: 73 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
Loading

0 comments on commit 001e899

Please sign in to comment.