Skip to content

Commit 530c959

Browse files
fix: remove unecessary build steps and use build with the reusable workflow
1 parent e43ef62 commit 530c959

File tree

1 file changed

+5
-36
lines changed

1 file changed

+5
-36
lines changed

.github/workflows/publish-npm-deserializer.yml

Lines changed: 5 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -13,42 +13,6 @@ on:
1313
default: nightly
1414

1515
jobs:
16-
build-sdk:
17-
runs-on: ubuntu-latest
18-
steps:
19-
- uses: actions/checkout@v4
20-
- name: Build SDK
21-
working-directory: packages/sdk
22-
run: |
23-
npm ci
24-
npm run codegen
25-
npm run build
26-
- name: Upload sdk/dist
27-
uses: actions/upload-artifact@v4
28-
with:
29-
name: sdk-dist
30-
path: packages/sdk/dist
31-
32-
prepare-workspace:
33-
needs: build-sdk
34-
runs-on: ubuntu-latest
35-
outputs:
36-
environment: ${{ steps.set-env.outputs.resolved-environment }}
37-
steps:
38-
- uses: actions/checkout@v4
39-
40-
- name: Download sdk/dist
41-
uses: actions/download-artifact@v4
42-
with:
43-
name: sdk-dist
44-
path: packages/sdk/dist
45-
46-
- name: Upload full workspace
47-
uses: actions/upload-artifact@v4
48-
with:
49-
name: full-workspace
50-
path: .
51-
5216
publish-npm:
5317
needs: prepare-workspace
5418
uses: iExecBlockchainComputing/github-actions-workflows/.github/workflows/publish-npm.yml@feat/publish-npm
@@ -61,6 +25,11 @@ jobs:
6125
working-directory: "packages/dataprotector-deserializer"
6226
install-command: |
6327
npm ci
28+
cd ../sdk
29+
npm ci
30+
npm run codegen
31+
npm run build
32+
cd ../dataprotector-deserializer
6433
npm run test:prepare
6534
secrets:
6635
npm-token: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)