From 5f7e9f5e5974e46bebeb40ccc5839f185c021b94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduard=20Bardaj=C3=AD=20Puig?= Date: Wed, 20 Mar 2024 14:53:51 +0100 Subject: [PATCH] Paralellize publish jobs --- .github/workflows/build.yaml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 30885b6..ef9f26d 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -5,9 +5,8 @@ on: branches: [main] jobs: - publish: + publish NPM: runs-on: ubuntu-latest - steps: - uses: actions/checkout@v4 @@ -22,13 +21,28 @@ jobs: run: npm run build - run: npm ci + - run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_PACKAGE_REGISTRY_TOKEN }} + publish Github: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: registry-url: "https://npm.pkg.github.com" + + - name: Install dependencies + run: npm install + + - name: Run build + run: npm run build + + - run: npm ci + - run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.GH_PACKAGE_REGISTRY_TOKEN }}