From ca45b4e84bca75d63b8068878a527966267e1894 Mon Sep 17 00:00:00 2001 From: Steve Rushby Date: Fri, 1 Nov 2024 14:41:25 +0000 Subject: [PATCH] Web3 1188 single build-publish job (#13) chore: Change to use a single job for the build and publish workflow --- .github/workflows/ci-publish-package.yml | 31 ++---------------------- 1 file changed, 2 insertions(+), 29 deletions(-) diff --git a/.github/workflows/ci-publish-package.yml b/.github/workflows/ci-publish-package.yml index 6924279..29d6743 100644 --- a/.github/workflows/ci-publish-package.yml +++ b/.github/workflows/ci-publish-package.yml @@ -7,7 +7,7 @@ on: workflow_dispatch: jobs: - build-package: + build-and-publish: runs-on: ubuntu-latest env: SEED_PHRASE_1: ${{ secrets.SEED_PHRASE_1 }} @@ -42,33 +42,6 @@ jobs: id: extract_version run: echo "package_version=$(node -p "require('./package.json').version")" >> $GITHUB_ENV - - name: Upload build artifacts - id: upload_build - uses: actions/upload-artifact@v4 - with: - name: build - path: ./dist - - publish-package: - runs-on: ubuntu-latest - needs: build-package - - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Download build artifacts - uses: actions/download-artifact@v4 - with: - name: build - path: ./dist - pattern: '**/*' - - - name: Setup Node.js - uses: actions/setup-node@v3 - with: - node-version: '18.x' - - name: Authenticate to npm registry env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} @@ -79,7 +52,7 @@ jobs: run: npm publish --ignore-scripts - name: Send Slack Notification for Publish - if: steps.publish.outcome == 'success' + if: ${{ steps.publish.outcome == 'success' }} uses: slackapi/slack-github-action@v1.25.0 with: payload: |