Skip to content

Merge pull request #248 from dajiaji/bump-to-1_0_4 #526

Merge pull request #248 from dajiaji/bump-to-1_0_4

Merge pull request #248 from dajiaji/bump-to-1_0_4 #526

Workflow file for this run

name: Node.js CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 17.x, 18.x, 19.x, 20.x]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Run dnt & minify
run: |
npm install -g esbuild
deno task dnt
deno task minify > ./npm/hpke.min.js
- name: Run dnt & minify for /core
working-directory: ./core
run: |
deno task dnt
deno task minify > ./npm/hpke-core.min.js
- name: Run dnt & minify for /x/dhkem-x25519
working-directory: ./x/dhkem-x25519
run: |
deno task dnt
deno task minify > ./npm/hpke-dhkem-x25519.min.js
- name: Run dnt & minify for /x/dhkem-x448
working-directory: ./x/dhkem-x448
run: |
deno task dnt
deno task minify > ./npm/hpke-dhkem-x448.min.js
- name: Run dnt & minify for /x/chacha20poly1305
working-directory: ./x/chacha20poly1305
run: |
deno task dnt
deno task minify > ./npm/hpke-chacha20poly1305.min.js
- name: Run dnt & minify for /x/dhkem-secp256k1
working-directory: ./x/dhkem-secp256k1
run: |
deno task dnt
deno task minify > ./npm/hpke-dhkem-secp256k1.min.js