diff --git a/.github/workflows/docker_publish.yml b/.github/workflows/docker_publish.yml index 089fb4b..281ce90 100644 --- a/.github/workflows/docker_publish.yml +++ b/.github/workflows/docker_publish.yml @@ -1,10 +1,7 @@ name: docker image publish on: - workflow_run: - workflows: ["npm publish"] - branches: [master] - types: - - completed + workflow_dispatch: + workflow_call: jobs: build_and_push_docker_image: diff --git a/.github/workflows/npm_publish.yml b/.github/workflows/npm_and_docker_publish.yml similarity index 75% rename from .github/workflows/npm_publish.yml rename to .github/workflows/npm_and_docker_publish.yml index 7c8884f..0adef62 100644 --- a/.github/workflows/npm_publish.yml +++ b/.github/workflows/npm_and_docker_publish.yml @@ -1,4 +1,4 @@ -name: npm publish +name: npm and docker publish on: release: types: [published] @@ -25,4 +25,7 @@ jobs: - name: Publish npm package run: yarn publish:anchor-tests env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + + - name: Publish docker image + uses: ./.github/workflows/docker_publish.yml \ No newline at end of file diff --git a/@stellar/anchor-tests/package.json b/@stellar/anchor-tests/package.json index 18ee1e9..0210b4a 100644 --- a/@stellar/anchor-tests/package.json +++ b/@stellar/anchor-tests/package.json @@ -1,6 +1,6 @@ { "name": "@stellar/anchor-tests", - "version": "0.6.3", + "version": "0.6.4", "description": "stellar-anchor-tests is a library and command line interface for testing Stellar anchors.", "main": "./lib/index.js", "types": "./lib/index.d.ts",