diff --git a/.github/actions/publish-release/action.yml b/.github/actions/publish-release/action.yml index 8ab2104016..184683de29 100644 --- a/.github/actions/publish-release/action.yml +++ b/.github/actions/publish-release/action.yml @@ -151,12 +151,6 @@ runs: wombat-token-core: '${{ inputs.wombat-token-core }}' wombat-token-cli: '${{ inputs.wombat-token-cli }}' - - name: 'Install deps' - working-directory: '${{ inputs.working-directory }}' - shell: 'bash' - run: | - npm install - - name: '🎁 Bundle' working-directory: '${{ inputs.working-directory }}' shell: 'bash' diff --git a/.github/actions/verify-release/action.yml b/.github/actions/verify-release/action.yml index 36f0eff6ce..b867864694 100644 --- a/.github/actions/verify-release/action.yml +++ b/.github/actions/verify-release/action.yml @@ -25,6 +25,7 @@ runs: - name: 'Checkout' uses: 'actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955' # ratchet:actions/checkout@v4 with: + path: 'verify' ref: '${{ github.event.inputs.ref }}' fetch-depth: 0 @@ -34,13 +35,13 @@ runs: timeout_seconds: 900 retry_wait_seconds: 30 max_attempts: 10 - command: |- - npm install --prefer-online --no-cache -g ${{ inputs.npm-package }} + command: 'cd ./verify && pkg="${{ inputs.npm-package }}" && npm install --prefer-online --no-cache -g "$pkg"' # This provides a very basic smoke test for Gemini CLI - name: 'Run Gemini CLI' id: 'gemini_cli' shell: 'bash' + working-directory: './verify' run: |- echo "gemini_version=$(gemini --version)" >> $GITHUB_OUTPUT @@ -48,6 +49,7 @@ runs: - name: 'Fail workflow if version does not match' if: '${{ steps.gemini_cli.outputs.gemini_version != inputs.expected-version }}' shell: 'bash' + working-directory: './verify' run: |- echo '❌ Got ${{ steps.gemini_cli.outputs.gemini_version }} from ${{ inputs.npm-package }}' echo '❌ Expected Version ${{ inputs.expected-version }}' diff --git a/.github/workflows/verify-release.yml b/.github/workflows/verify-release.yml index 0ebacd0d3f..7313cf5d40 100644 --- a/.github/workflows/verify-release.yml +++ b/.github/workflows/verify-release.yml @@ -26,6 +26,6 @@ jobs: - name: 'Verify release' uses: './.github/actions/verify-release' with: - npm-package: '${github.event.inputs.npm-package}' - expected-version: '${github.event.inputs.version}' - ref: '${github.event.inputs.ref}' + npm-package: '${{github.event.inputs.npm-package}}' + expected-version: '${{github.event.inputs.version}}' + ref: '${{github.event.inputs.ref}}'