Skip to content

Commit

Permalink
combine npm and docker publish (#130)
Browse files Browse the repository at this point in the history
* combine npm and docker publisj

test run on pr

* Update npm_and_docker_publish.yml

Testing

* Test successful. Ready to release

* Remove docker_publish.yml

---------

Co-authored-by: Jamie Li <[email protected]>
  • Loading branch information
JiahuiWho and lijamie98 authored Oct 17, 2023
1 parent 8c4adbe commit 823f7f8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 29 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/docker_publish.yml

This file was deleted.

16 changes: 13 additions & 3 deletions .github/workflows/npm_and_docker_publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: npm and docker publish
name: npm and docker build and publish
on:
release:
types: [published]
Expand Down Expand Up @@ -27,5 +27,15 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish docker image
uses: ./.github/workflows/docker_publish.yml
- name: Docker Login
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push Docker images
uses: docker/[email protected]
with:
push: true
tags: stellar/anchor-tests:${{ github.event.release.tag_name }},stellar/anchor-tests:latest
file: Dockerfile
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.4",
"version": "0.6.5",
"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 823f7f8

Please sign in to comment.