Skip to content

Commit

Permalink
Make npm publish idempotent (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
philipliu authored Aug 19, 2024
1 parent fec6fcc commit 2f3681f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/npm_and_docker_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand All @@ -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/[email protected]
with:
Expand Down

0 comments on commit 2f3681f

Please sign in to comment.