diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a34830d..f8e582a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -259,12 +259,12 @@ jobs: name: ${{ matrix.os }} path: _build/default/ppx/bin/bin.exe - prepare_release: + release: needs: - build_macos - build_linux - build_windows - name: Prepare release + name: Release runs-on: ubuntu-latest if: startsWith(github.ref, 'refs/tags/v') @@ -276,6 +276,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: 16.x + registry-url: "https://registry.npmjs.org" - name: Download macOS x86 artifacts uses: actions/download-artifact@v4 @@ -324,3 +325,11 @@ jobs: with: name: release path: _release + + - name: Publish + if: success() + run: | + cd _release + npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}