File tree Expand file tree Collapse file tree 1 file changed +32
-19
lines changed
Expand file tree Collapse file tree 1 file changed +32
-19
lines changed Original file line number Diff line number Diff line change 1313 default : nightly
1414
1515jobs :
16- build-and-publish :
16+ build-sdk :
1717 runs-on : ubuntu-latest
18- container : node:18
1918 steps :
2019 - uses : actions/checkout@v4
21-
22- # Build the SDK
23- - name : Set up sdk
20+ - name : Build sdk
2421 working-directory : packages/sdk
2522 run : |
2623 npm ci
2724 npm run codegen
2825 npm run build
29-
30- - name : Publish deserializer package
31- uses : iExecBlockchainComputing/github-actions-workflows/.github/workflows/publish-npm.yml@feat/publish-npm
26+ - name : Upload sdk dist
27+ uses : actions/upload-artifact@v4
28+ with :
29+ name : sdk-dist
30+ path : packages/sdk/dist
31+
32+ publish-npm :
33+ needs : build-sdk
34+ runs-on : ubuntu-latest
35+ steps :
36+ - uses : actions/checkout@v4
37+
38+ - name : Download sdk dist
39+ uses : actions/download-artifact@v4
3240 with :
33- scope : ' @iexec/deserializer'
34- registry : ' https://registry.npmjs.org'
35- node-version : ' 18'
36- tag : ${{ github.event.inputs.tag }}
37- environment : production
38- working-directory : " packages/dataprotector-deserializer"
39- install-command : |
40- npm ci
41- npm run test:prepare
42- secrets :
43- npm-token : ${{ secrets.NPM_TOKEN }}
41+ name : sdk-dist
42+ path : packages/sdk/dist
43+
44+ uses : iExecBlockchainComputing/github-actions-workflows/.github/workflows/publish-npm.yml@feat/publish-npm
45+ with :
46+ scope : ' @iexec/deserializer'
47+ registry : ' https://registry.npmjs.org'
48+ node-version : ' 18'
49+ tag : ${{ github.event.inputs.tag }}
50+ environment : production
51+ working-directory : " packages/dataprotector-deserializer"
52+ install-command : |
53+ npm ci
54+ npm run test:prepare
55+ secrets :
56+ npm-token : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments