diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index e8d93709..9b6724c4 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -39,12 +39,8 @@ jobs: run: | cp build/canary.ico build/icon.ico cp build/canary.icns build/icon.icns - - name: Build (pr) - if: github.event_name == 'pull_request' - run: yarn run dist --publish=never - - name: Build (push) - if: github.event_name == 'push' - run: yarn run dist + - name: Build + run: if [ ! -z "$CSC_LINK" ] ; then yarn run dist ; else unset CSC_LINK && unset WIN_CSC_LINK && yarn run dist --publish=never ; fi env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} CSC_LINK: ${{ secrets.MAC_CERT_P12_BASE64 }}