diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 2457061..66cebf1 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -388,6 +388,7 @@ jobs: name: Publish runs-on: ubuntu-latest environment: npm + if: contains(github.ref, 'main') needs: - test-macOS-windows-binding - test-linux-binding @@ -440,11 +441,7 @@ jobs: shell: bash - name: Update npm run: npm install -g npm@latest - - name: Pack - if: ${{ !contains(github.ref, 'main') }} - run: npm pack - name: Publish - if: contains(github.ref, 'main') run: | if git log -1 --pretty=%B | grep "^v\?[0-9]\+\.[0-9]\+\.[0-9]\+"; then