Skip to content

Commit

Permalink
publish docker in npm action (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
JiahuiWho authored Oct 16, 2023
1 parent 1dd752c commit 8c4adbe
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/docker_publish.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: npm publish
name: npm and docker publish
on:
release:
types: [published]
Expand All @@ -25,4 +25,7 @@ jobs:
- name: Publish npm package
run: yarn publish:anchor-tests
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish docker image
uses: ./.github/workflows/docker_publish.yml
2 changes: 1 addition & 1 deletion @stellar/anchor-tests/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 8c4adbe

Please sign in to comment.