Skip to content
25 changes: 25 additions & 0 deletions .github/workflows/publish-npm-sdk.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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 }}
Loading