File tree Expand file tree Collapse file tree 5 files changed +78
-12
lines changed Expand file tree Collapse file tree 5 files changed +78
-12
lines changed Original file line number Diff line number Diff line change 55 - master
66jobs :
77 test :
8- name : ${{ matrix.kind }} ${{ matrix.os }}
8+ name : test ${{ matrix.os }}
99 runs-on : ${{ matrix.os }}
10- if : " !contains(github.event.head_commit.message, '[skip ci]')"
10+ if : ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
1111 strategy :
1212 matrix :
1313 os : [macOS-latest, ubuntu-latest, windows-latest]
2727 name : benchmark
2828 runs-on : ubuntu-latest
2929 needs : test
30- if : " !contains(github.event.head_commit.message, '[skip ci]')"
30+ if : ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
3131 continue-on-error : true
3232 timeout-minutes : 25
3333 env :
@@ -44,12 +44,15 @@ jobs:
4444 run : deno bench --unstable .
4545 release :
4646 name : Release
47+ permissions :
48+ contents : read
49+ id-token : write
4750 runs-on : ubuntu-latest
4851 needs : test
49- if : " !contains(github.event.head_commit.message, '[skip ci]')"
52+ if : ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
5053 steps :
5154 - name : Checkout
52- uses : actions/checkout@v3
55+ uses : actions/checkout@v4
5356 with :
5457 fetch-depth : 0 # get all commits, not just the last one
5558 - name : Cache Rust artifacts
8790 deno install --allow-write --allow-env --allow-read --allow-net --unstable https://x.nest.land/eggs@0.3.10/eggs.ts
8891 eggs link ${{ secrets.NEST_TOKEN }}
8992 eggs publish --yes --no-check
93+ - name : Publish to JSR
94+ run : |
95+ sed -i "s/from ".*"; \/\/jsr: //" deps.ts # remove https imports
96+ deno publish
Original file line number Diff line number Diff line change 44 [
55 " @semantic-release/exec" ,
66 {
7- "prepareCmd" : " sed -i \" s/scrypt@v[[:digit:]]\\ +\\ .[[:digit:]]\\ +\\ .[[:digit:]]\\ +/scrypt@v${nextRelease.version}/g\" README.md && sed -i \" s/[[:digit:]]\\ +\\ .[[:digit:]]\\ +\\ .[[:digit:]]/${nextRelease.version}/\" egg.json && sed -i \" s/v[[:digit:]]\\ +\\ .[[:digit:]]\\ +\\ .[[:digit:]]/v${nextRelease.version}/\" lib/scrypt_bench.ts && sed -i \" s/@version [[:digit:]]\\ +\\ .[[:digit:]]\\ +\\ .[[:digit:]]/@version ${nextRelease.version}/\" mod.ts"
7+ "prepareCmd" : " sed -i \" s/scrypt@v[[:digit:]]\\ +\\ .[[:digit:]]\\ +\\ .[[:digit:]]\\ +/scrypt@v${nextRelease.version}/g\" README.md && sed -i \" s/\\\" version \\\" : \\\" [[:digit:]] \\ + \\ .[[:digit:]] \\ + \\ .[[:digit:]] \\\" / \\\" version \\\" : \\\" ${nextRelease.version} \\\" / \" deno.jsonc && sed -i \" s/ [[:digit:]]\\ +\\ .[[:digit:]]\\ +\\ .[[:digit:]]/${nextRelease.version}/\" egg.json && sed -i \" s/v[[:digit:]]\\ +\\ .[[:digit:]]\\ +\\ .[[:digit:]]/v${nextRelease.version}/\" lib/scrypt_bench.ts && sed -i \" s/@version [[:digit:]]\\ +\\ .[[:digit:]]\\ +\\ .[[:digit:]]/@version ${nextRelease.version}/\" mod.ts"
88 }
99 ],
1010 [
Original file line number Diff line number Diff line change 11{
2+ "name" : " @denorg/scrypt" ,
3+ "version" : " 4.3.1" ,
4+ "exports" : " ./mod.ts" ,
25 "$schema" : " https://deno.land/x/deno/cli/schemas/config-file.v1.json" ,
36 "lint" : {
47 "files" : {
5- "exclude" : [" lib/_wasm/wasm.js" , " lib/_wasm/out/" ]
8+ "exclude" : [
9+ " lib/_wasm/wasm.js" ,
10+ " lib/_wasm/out/"
11+ ]
612 }
713 },
814 "tasks" : {
1218 "exclude" : [
1319 " target/"
1420 ]
21+ },
22+ "publish" : {
23+ "exclude" : [
24+ " **/*_bench.ts" ,
25+ " .releaserc.json" ,
26+ " egg.json" ,
27+ " .eggignore" ,
28+ " _config.yml" ,
29+ " .vscode/"
30+ ]
31+ },
32+ "imports" : {
33+ "@std/assert" : " jsr:@std/assert@0.218.2" ,
34+ "@std/crypto" : " jsr:@std/crypto@0.218.2" ,
35+ "@std/encoding" : " jsr:@std/encoding@0.218.2"
1536 }
1637}
Original file line number Diff line number Diff line change 11export {
22 assert ,
33 assertEquals ,
4- } from "https://deno.land/std@0.210.0 /assert/mod.ts" ;
5- export { crypto } from "https://deno.land/std@0.210.0 /crypto/mod.ts" ;
6- export { timingSafeEqual } from "https://deno.land/std@0.210.0 /crypto/timing_safe_equal.ts" ;
4+ } from "https://deno.land/std@0.218.2 /assert/mod.ts" ; //jsr: "@std/assert ";
5+ export { crypto } from "https://deno.land/std@0.218.2 /crypto/mod.ts" ; //jsr: "@std/crypto ";
6+ export { timingSafeEqual } from "https://deno.land/std@0.218.2 /crypto/timing_safe_equal.ts" ; //jsr: "@std/crypto ";
77export {
88 decodeBase64 ,
99 encodeBase64 ,
10- } from "https://deno.land/std@0.210.0 /encoding/base64.ts" ;
10+ } from "https://deno.land/std@0.218.2 /encoding/base64.ts" ; //jsr: "@std/encoding/base64 ";
1111export {
1212 decodeHex ,
1313 encodeHex ,
14- } from "https://deno.land/std@0.210.0 /encoding/hex.ts" ;
14+ } from "https://deno.land/std@0.218.2 /encoding/hex.ts" ; //jsr: "@std/encoding/hex ";
You can’t perform that action at this time.
0 commit comments