From 990cdc97083bc316c6405c1de8fc730155f3f85f Mon Sep 17 00:00:00 2001 From: Alex Fedoseev Date: Wed, 28 Feb 2024 18:09:10 +0400 Subject: [PATCH] Release from CI --- .github/workflows/ci.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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 }}