From 4e6b85f686dd60baf10a603b2e0d1b06b942735f Mon Sep 17 00:00:00 2001 From: Serhii Shymkiv Date: Sat, 29 Jun 2024 09:50:17 +0300 Subject: [PATCH] Make projects release sequential --- .github/workflows/pkg-pr-new-publish.yml | 43 ++++++++++++------------ 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/.github/workflows/pkg-pr-new-publish.yml b/.github/workflows/pkg-pr-new-publish.yml index bc9b88605e..988fb7f16d 100644 --- a/.github/workflows/pkg-pr-new-publish.yml +++ b/.github/workflows/pkg-pr-new-publish.yml @@ -10,7 +10,29 @@ on: workflow_dispatch: {} jobs: + pkg-pr-new-mina-signer: + strategy: + matrix: + node: [20] + runs-on: [ubuntu-latest] + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Setup Node.JS ${{ matrix.node }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} + - name: Build mina-signer + run: | + git submodule update --init --recursive + npm ci + cd src/mina-signer + npm ci + npm run prepublishOnly + - name: Publish mina-signer on pkg-pr-new + run: npx pkg-pr-new publish # Enable `--compact` once published to NPM with `repository` in package.json pkg-pr-new-o1js: + needs: [pkg-pr-new-mina-signer] strategy: matrix: node: [20] @@ -29,24 +51,3 @@ jobs: npm run build - name: Publish o1js on pkg-pr-new run: npx pkg-pr-new publish # Enable `--compact` once published to NPM with `repository` in package.json - # pkg-pr-new-mina-signer: - # strategy: - # matrix: - # node: [20] - # runs-on: [ubuntu-latest] - # steps: - # - name: Checkout repository - # uses: actions/checkout@v4 - # - name: Setup Node.JS ${{ matrix.node }} - # uses: actions/setup-node@v4 - # with: - # node-version: ${{ matrix.node }} - # - name: Build mina-signer - # run: | - # git submodule update --init --recursive - # npm ci - # cd src/mina-signer - # npm ci - # npm run prepublishOnly - # - name: Publish mina-signer on pkg-pr-new - # run: npx pkg-pr-new publish # Enable `--compact` once published to NPM with `repository` in package.json