Skip to content

Commit 472889c

Browse files
committed
Add publish (dry run) to CI.
1 parent 08c1654 commit 472889c

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
token: ${{ secrets.CODECOV_TOKEN }}
2828
files: ./coverage.lcov
2929
flags: unittests
30+
- name: Run deno publish (dry)
31+
run: deno publish --dry-run
3032
# - name: Run deno test for /core
3133
# working-directory: ./core
3234
# run: |

.github/workflows/ci_node.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,33 +30,54 @@ jobs:
3030
run: |
3131
deno task dnt
3232
deno task minify > ../../npm-packages/x/core/hpke-core.min.js
33+
- name: Publish to npm (dry) for /x/core
34+
working-directory: ./npm-packages/x/core
35+
run: npm publish --dry-run
3336
- name: Run dnt & minify for /x/chacha20poly1305
3437
working-directory: ./x/chacha20poly1305
3538
run: |
3639
deno task dnt
3740
deno task minify > ../../npm-packages/x/chacha20poly1305/hpke-chacha20poly1305.min.js
41+
- name: Publish to npm (dry) for /x/chacha20poly1305
42+
working-directory: ./npm-packages/x/chacha20poly1305
43+
run: npm publish --dry-run
3844
- name: Run dnt & minify for /x/dhkem-x25519
3945
working-directory: ./x/dhkem-x25519
4046
run: |
4147
deno task dnt
4248
deno task minify > ../../npm-packages/x/dhkem-x25519/hpke-dhkem-x25519.min.js
49+
- name: Publish to npm (dry) for /x/dhkem-x25519
50+
working-directory: ./npm-packages/x/dhkem-x25519
51+
run: npm publish --dry-run
4352
- name: Run dnt & minify for /x/dhkem-x448
4453
working-directory: ./x/dhkem-x448
4554
run: |
4655
deno task dnt
4756
deno task minify > ../../npm-packages/x/dhkem-x448/hpke-dhkem-x448.min.js
57+
- name: Publish to npm (dry) for /x/dhkem-x448
58+
working-directory: ./npm-packages/x/dhkem-x448
59+
run: npm publish --dry-run
4860
- name: Run dnt & minify for /x/hybridkem-x25519-kyber768
4961
working-directory: ./x/hybridkem-x25519-kyber768
5062
run: |
5163
deno task dnt
5264
deno task minify > ../../npm-packages/x/hybridkem-x25519-kyber768/hpke-hybridkem-x25519-kyber768.min.js
65+
- name: Publish to npm (dry) for /x/hybridkem-x25519-kyber768
66+
working-directory: ./npm-packages/x/hybridkem-x25519-kyber768
67+
run: npm publish --dry-run
5368
- name: Run dnt & minify for /x/dhkem-secp256k1
5469
working-directory: ./x/dhkem-secp256k1
5570
run: |
5671
deno task dnt
5772
deno task minify > ../../npm-packages/x/dhkem-secp256k1/hpke-dhkem-secp256k1.min.js
73+
- name: Publish to npm (dry) for /x/dhkem-secp256k1
74+
working-directory: ./npm-packages/x/dhkem-secp256k1
75+
run: npm publish --dry-run
5876
- name: Run dnt & minify for /x/hpke-js
5977
working-directory: ./x/hpke-js
6078
run: |
6179
deno task dnt
6280
deno task minify > ../../npm-packages/x/hpke-js/hpke.min.js
81+
- name: Publish to npm (dry) for /x/hpke-js
82+
working-directory: ./npm-packages/x/hpke-js
83+
run: npm publish --dry-run

0 commit comments

Comments
 (0)