diff --git a/.github/workflows/devpackpublish.yml b/.github/workflows/devpackpublish.yml index c5f5a6e15..cc4a2d516 100644 --- a/.github/workflows/devpackpublish.yml +++ b/.github/workflows/devpackpublish.yml @@ -49,11 +49,3 @@ jobs: git add . git commit -m "[CI Skip] ci: publish prerelease" -n git push - - name: Repository Dispatch - uses: peter-evans/repository-dispatch@v2 - with: - token: ${{ secrets.REPO_ACCESS_TOKEN }} - repository: KILTProtocol/docs - event-type: sdk-update - client-payload: '{"latestTag": "${{ steps.package_version.outputs.package_version }}"}' - diff --git a/.github/workflows/npmpublish-rc.yml b/.github/workflows/npmpublish-rc.yml index 9d680fdb2..ece3e6a33 100644 --- a/.github/workflows/npmpublish-rc.yml +++ b/.github/workflows/npmpublish-rc.yml @@ -28,7 +28,17 @@ jobs: run: yarn run build - name: Bundle library run: yarn run bundle + - name: Get current package version + id: package_version + run: echo "::set-output name=package_version::$(node -pe "require('./package.json').version")" - name: Publish to NPM run: yarn run publish --tag rc env: YARN_NPM_AUTH_TOKEN: ${{secrets.npm_token}} + - name: Repository Dispatch + uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.REPO_ACCESS_TOKEN }} + repository: KILTProtocol/docs + event-type: sdk-update + client-payload: '{"latestTag": "${{ steps.package_version.outputs.package_version }}"}' diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index 171a27bab..7957abf81 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -28,7 +28,17 @@ jobs: run: yarn run build - name: Bundle library run: yarn run bundle + - name: Get current package version + id: package_version + run: echo "::set-output name=package_version::$(node -pe "require('./package.json').version")" - name: Publish to NPM run: yarn run publish --tag latest env: YARN_NPM_AUTH_TOKEN: ${{secrets.npm_token}} + - name: Repository Dispatch + uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.REPO_ACCESS_TOKEN }} + repository: KILTProtocol/docs + event-type: sdk-update + client-payload: '{"latestTag": "${{ steps.package_version.outputs.package_version }}"}'