diff --git a/.github/workflows/setlatest.yml b/.github/workflows/setlatest.yml new file mode 100644 index 0000000..3fca475 --- /dev/null +++ b/.github/workflows/setlatest.yml @@ -0,0 +1,21 @@ +name: npm Set Latest + +on: + workflow_dispatch: + inputs: + version: + description: 'Version' + required: true + type: string + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/setup-node@v3 + with: + node-version: '16.x' + registry-url: 'https://registry.npmjs.org' + - run: npm dist-tag add @hyperledger/firefly-sdk@${{ inputs.version }} latest + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}