From b0dc55a1f122d3a71cc3612bea1537e6d86dd5ed Mon Sep 17 00:00:00 2001 From: Ajitomi Daisuke Date: Sun, 3 Nov 2024 22:43:41 +0900 Subject: [PATCH] Update CI for X-Wing. --- .github/workflows/ci_browser.yml | 5 +++++ .github/workflows/ci_node.yml | 8 ++++++++ .github/workflows/publish.yml | 7 ++++++- 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci_browser.yml b/.github/workflows/ci_browser.yml index 178d51b24..d398cdf22 100644 --- a/.github/workflows/ci_browser.yml +++ b/.github/workflows/ci_browser.yml @@ -90,6 +90,11 @@ jobs: run: | npx typedoc --name "@hpke/dhkem-secp256k1 $(git describe --tags --abbrev=0)" --out ../hpke-js/test/runtimes/browsers/pages/dhkem-secp256k1/docs mod.ts deno task minify > ../hpke-js/test/runtimes/browsers/pages/dhkem-secp256k1/src/hpke-dhkem-secp256k1.js + - name: Build docs for @hpke/hybridkem-x-wing + working-directory: ./packages/hybridkem-x-wing + run: | + npx typedoc --name "@hpke/hybridkem-x-wing" --out ../hpke-js/test/runtimes/browsers/pages/hybridkem-x-wing/docs mod.ts + deno task minify > ../hpke-js/test/runtimes/browsers/pages/hybridkem-x-wing/src/hpke-hybridkem-x-wing.js - name: Build docs for @hpke/hpke-js working-directory: ./packages/hpke-js run: | diff --git a/.github/workflows/ci_node.yml b/.github/workflows/ci_node.yml index cb2265303..11b5cc18c 100644 --- a/.github/workflows/ci_node.yml +++ b/.github/workflows/ci_node.yml @@ -81,6 +81,14 @@ jobs: - name: Publish to npm (dry) for /packages/dhkem-secp256k1 working-directory: ./npm/packages/dhkem-secp256k1 run: npm publish --dry-run + - name: Run dnt & minify for /packages/hybridkem-x-wing + working-directory: ./packages/hybridkem-x-wing + run: | + deno task dnt + deno task minify > ../../npm/packages/hybridkem-x-wing/hpke-hybridkem-x-wing.min.js + - name: Publish to npm (dry) for /packages/hybridkem-x-wing + working-directory: ./npm/packages/hybridkem-x-wing + run: npm publish --dry-run - name: Run dnt & minify for /packages/hpke-js working-directory: ./packages/hpke-js run: | diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0f06471af..e45471b29 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -74,8 +74,13 @@ jobs: run: npm publish --provenance env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + - name: Publish @hpke/hybridkem-x-wing to npm + working-directory: ./npm/packages/hybridkem-x-wing + run: npm publish --provenance + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - name: Publish hpke-js to npm working-directory: ./npm/packages/hpke-js run: npm publish --provenance env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} \ No newline at end of file