File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -76,13 +76,13 @@ jobs:
7676 with :
7777 save-if : ${{ github.ref == 'refs/heads/main' }}
7878
79- # Keep this in sync with:
80- # .github/workflows/latest-matrix-sdk-crypto.yml
81- # .github/workflows/release.yml
79+ # Keep this in sync with:
80+ # .github/workflows/latest-matrix-sdk-crypto.yml
81+ # .github/workflows/release.yml
8282 - name : Install Node.js
83- uses : actions/setup-node@v3
83+ uses : actions/setup-node@v5
8484 with :
85- node-version : 20 .0
85+ node-version : 24 .0
8686
8787 - name : Install yarn
8888 run : npm install --global yarn
Original file line number Diff line number Diff line change @@ -55,13 +55,13 @@ jobs:
5555 run : |
5656 cargo xtask unstable-rust-sdk
5757
58+ # Keep this in sync with:
59+ # .github/workflows/ci.yml
60+ # .github/workflows/release.yml
5861 - name : Install Node.js
59- uses : actions/setup-node@v3
62+ uses : actions/setup-node@v5
6063 with :
61- # Keep this in sync with:
62- # .github/workflows/ci.yml
63- # .github/workflows/release.yml
64- node-version : 20.0
64+ node-version : 24.0
6565
6666 - name : Install yarn
6767 run : npm install --global yarn
Original file line number Diff line number Diff line change 2222 name : Publish 🕸 [m]-crypto-wasm
2323 runs-on : ubuntu-latest
2424
25+ permissions :
26+ id-token : write # Allow requesting an OIDC JWT, which is required to publish to npm
27+ contents : read
28+
2529 steps :
2630 - name : Checkout the repo
2731 uses : actions/checkout@v3
@@ -31,26 +35,28 @@ jobs:
3135 with :
3236 targets : wasm32-unknown-unknown
3337
34- # Keep this in sync with:
35- # .github/workflows/ci.yml
36- # .github/workflows/latest-matrix-sdk-crypto.yml
38+ # Keep this in sync with:
39+ # .github/workflows/ci.yml
40+ # .github/workflows/latest-matrix-sdk-crypto.yml
3741 - name : Install Node.js
38- uses : actions/setup-node@v3
42+ uses : actions/setup-node@v5
3943 with :
40- node-version : 20 .0
44+ node-version : 24 .0
4145
4246 - name : Install yarn
4347 run : npm install --global yarn
4448
4549 - name : Install dependencies
4650 run : yarn install
4751
48- - name : Publish the WebAssembly + JavaScript binding (imply building + testing)
49- uses : JS-DevTools/npm-publish@v1
50- with :
51- package : package.json
52- access : public
53- token : ${{ secrets.NPM_TOKEN }}
52+ - name : Build
53+ run : yarn build
54+
55+ - name : Run tests
56+ run : yarn test
57+
58+ - name : Publish to npmjs
59+ run npm publish --provenance --ignore-scripts
5460
5561 github-release :
5662 name : Create the Github release
You can’t perform that action at this time.
0 commit comments