Skip to content

Commit a8183c6

Browse files
fix: use the same workspace
1 parent 3c96a43 commit a8183c6

File tree

1 file changed

+17
-22
lines changed

1 file changed

+17
-22
lines changed

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

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,36 +13,31 @@ on:
1313
default: nightly
1414

1515
jobs:
16-
build-sdk:
16+
build-and-publish:
1717
runs-on: ubuntu-latest
1818
container: node:18
1919
steps:
2020
- uses: actions/checkout@v4
21+
22+
# Build the SDK
2123
- name: Set up sdk
2224
working-directory: packages/sdk
2325
run: |
2426
npm ci
2527
npm run codegen
2628
npm run build
27-
- uses: actions/upload-artifact@v4
29+
30+
- name: Publish deserializer package
31+
uses: iExecBlockchainComputing/github-actions-workflows/.github/workflows/publish-npm.yml@feat/publish-npm
2832
with:
29-
name: sdk-dist
30-
path: packages/sdk/dist
31-
32-
publish-npm:
33-
needs: [build-sdk]
34-
uses: iExecBlockchainComputing/github-actions-workflows/.github/workflows/publish-npm.yml@feat/publish-npm
35-
with:
36-
scope: '@iexec/deserializer'
37-
registry: 'https://registry.npmjs.org'
38-
node-version: '18'
39-
tag: ${{ github.event.inputs.tag }}
40-
environment: ${{ needs.set-env.outputs.resolved-environment }} # For secrets env
41-
working-directory: "packages/dataprotector-deserializer"
42-
artifact-name: 'sdk-dist'
43-
artifact-path: 'packages/sdk/dist'
44-
install-command: |
45-
npm ci
46-
npm run test:prepare
47-
secrets:
48-
npm-token: ${{ secrets.NPM_TOKEN }}
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 }}

0 commit comments

Comments
 (0)