-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved NPM publishing to manual workflow
- Loading branch information
Showing
2 changed files
with
14 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,8 +83,6 @@ jobs: | |
components: rust-src | ||
|
||
- name: Install chromedriver | ||
# FIXME: remove if after testing | ||
if: false | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y chromium-chromedriver | ||
|
@@ -96,8 +94,6 @@ jobs: | |
uses: Swatinem/[email protected] | ||
|
||
- name: Run tests | ||
# FIXME: remove if after testing | ||
if: false | ||
run: | | ||
cd crates/wasm-test-runner | ||
./run.sh | ||
|
@@ -107,36 +103,19 @@ jobs: | |
cd crates/wasm | ||
./build.sh | ||
- name: Dry Run NPM Publish for tlsn-wasm | ||
- name: Dry Run NPM Publish | ||
run: | | ||
cd crates/wasm/pkg | ||
npm publish --dry-run | ||
- name: Save tlsn-wasm package for tagged builds | ||
# if: startsWith(github.ref, 'refs/tags/') | ||
if: startsWith(github.ref, 'refs/tags/') | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
# name: ${{ github.ref_name }}-tlsn-wasm-pkg | ||
name: ${{ github.sha }}-tlsn-wasm-pkg | ||
name: ${{ github.ref_name }}-tlsn-wasm-pkg | ||
path: ./crates/wasm/pkg | ||
if-no-files-found: error | ||
|
||
- name: Download build artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
# FIXME: fix name after testing | ||
# name: ${{ github.ref_name }}-tlsn-wasm-pkg | ||
name: ${{ github.sha }}-tlsn-wasm-pkg | ||
path: tlsn-wasm-pkg | ||
|
||
- name: NPM Publish for tlsn-wasm | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
# FIXME: remove dry-run after testing | ||
run: | | ||
cd tlsn-wasm-pkg | ||
npm publish --dry-run | ||
tests-integration: | ||
name: Run tests release build | ||
runs-on: ubuntu-latest | ||
|
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 |
---|---|---|
@@ -1,29 +1,27 @@ | ||
name: Release | ||
name: Publish tlsn-wasm to NPM | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["ci"] | ||
types: | ||
- completed | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: 'Tag to publish to NPM' | ||
required: true | ||
default: '0.1.0-alpha.8-pre' | ||
|
||
jobs: | ||
release: | ||
# FIXME: commented for testing in a PR | ||
# if: startsWith(github.ref, 'refs/tags/') | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Download build artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
# FIXME: fix name after testing | ||
# name: ${{ github.ref_name }}-tlsn-wasm-pkg | ||
name: ${{ github.sha }}-tlsn-wasm-pkg | ||
name: ${{ github.event.inputs.tag }}-tlsn-wasm-pkg | ||
path: tlsn-wasm-pkg | ||
|
||
- name: NPM Publish for tlsn-wasm | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
# FIXME: remove dry-run after testing | ||
run: | | ||
cd pkg | ||
npm publish --dry-run | ||
cd tlsn-wasm-pkg | ||
npm publish |