Skip to content

Commit 3ae25ec

Browse files
committed
release job fixes
Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>
1 parent 76ce029 commit 3ae25ec

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/cargo-publish.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ jobs:
8383
fi
8484
}
8585
86+
needs_publish hyperlight-js-common
8687
needs_publish hyperlight-js-runtime
8788
needs_publish hyperlight-js
8889
@@ -95,13 +96,20 @@ jobs:
9596
-r crates.io \
9697
-- \
9798
cargo publish --workspace --dry-run \
99+
-p hyperlight-js-common \
98100
-p hyperlight-js \
99101
-p hyperlight-js-runtime
100102
101103
- name: Authenticate with crates.io
102104
uses: rust-lang/crates-io-auth-action@v1
103105
id: crates-io-auth
104106

107+
- name: Publish hyperlight-js-common
108+
run: cargo publish -p hyperlight-js-common
109+
env:
110+
CARGO_REGISTRY_TOKEN: ${{ steps.crates-io-auth.outputs.token }}
111+
if: ${{ env.PUBLISH_HYPERLIGHT_JS_COMMON != 'false' && !inputs.dry_run }}
112+
105113
- name: Publish hyperlight-js-runtime
106114
run: cargo publish -p hyperlight-js-runtime
107115
env:

.github/workflows/gh-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
22

3-
name: Publish npm packages
3+
name: Create GitHub Release
44

55
on:
66
workflow_dispatch:
@@ -60,7 +60,7 @@ jobs:
6060
tar -zcvf benchmarks_Linux_hyperv3.tar.gz benchmarks_Linux_hyperv3
6161
6262
- name: Create GH Release
63-
if: ${{ inputs.dry_run == 'false' }}
63+
if: ${{ !inputs.dry_run }}
6464
run: |
6565
gh release create ${{ inputs.version }} \
6666
--generate-notes \

0 commit comments

Comments
 (0)