From 2f3681f13f472100965e168d0903d78696a2567e Mon Sep 17 00:00:00 2001 From: Philip Liu <12836897+philipliu@users.noreply.github.com> Date: Mon, 19 Aug 2024 16:42:40 -0400 Subject: [PATCH] Make npm publish idempotent (#148) --- .github/workflows/npm_and_docker_publish.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/npm_and_docker_publish.yml b/.github/workflows/npm_and_docker_publish.yml index 483fdb7..66529c2 100644 --- a/.github/workflows/npm_and_docker_publish.yml +++ b/.github/workflows/npm_and_docker_publish.yml @@ -13,8 +13,8 @@ jobs: - name: Install Node uses: actions/setup-node@v3 with: - node-version: '20.x' - registry-url: 'https://registry.npmjs.org' + node-version: "20.x" + registry-url: "https://registry.npmjs.org" - name: Install Depencencies run: yarn install @@ -23,6 +23,7 @@ jobs: run: yarn build:all - name: Publish npm package + continue-on-error: true run: yarn publish:anchor-tests env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} @@ -33,6 +34,9 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Install Latest npm Package + run: yarn add anchor-tests@latest + - name: Build and push Docker images uses: docker/build-push-action@v4.0.0 with: