diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 07c2d52..6f76e63 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,31 +16,27 @@ jobs: registry-url: https://registry.npmjs.org - name: install run: yarn install --frozen-lockfile - - name: Login to DockerHub - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - name: package version id: get-version uses: beaconbrigade/package-json-version@v0.3 with: path: . - - name: Buildx - id: docker_buildx - uses: docker/setup-buildx-action@v3 + - name: Login to DockerHub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 - name: Build and push - id: docker_build uses: docker/build-push-action@v5 with: context: . push: true tags: ngapimock/standalone:${{ steps.get-version.outputs.version }} - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - GH_TOKEN: ${{ secrets.GH_TOKEN }} - name: publish run: yarn semantic-release env: