diff --git a/.github/workflows/publish-npm-sdk.yml b/.github/workflows/publish-npm-sdk.yml new file mode 100644 index 000000000..bb13cd6a0 --- /dev/null +++ b/.github/workflows/publish-npm-sdk.yml @@ -0,0 +1,25 @@ +name: Publish Package NPM + +on: + workflow_dispatch: + inputs: + target: + description: 'Select deployment target' + required: true + default: staging + type: choice + options: + - staging + - prod + +jobs: + publish-npm: + uses: iExecBlockchainComputing/github-actions-workflows/.github/workflows/publish-npm.yml@publish-npm-v1.3.0 + with: + scope: '@iexec/dataprotector-sdk' + registry: 'https://registry.npmjs.org' + node-version: '18' + environment: ${{ github.event.inputs.target }} + working-directory: packages/sdk + secrets: + npm-token: ${{ secrets.NPM_TOKEN }}