From b4b2c7a0905af82245a670af52e0af9f616936e0 Mon Sep 17 00:00:00 2001 From: Dennis Kigen Date: Tue, 5 Mar 2024 13:56:50 +0300 Subject: [PATCH] (chore) Configure auth for publishing scripts --- .github/workflows/ci.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 548352b..29229a5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -90,10 +90,17 @@ jobs: - run: git add . && git commit -m "Prerelease version" --no-verify - name: Pre-release - run: yarn run ci:prepublish + run: yarn config set npmAuthToken "${NODE_AUTH_TOKEN}" && yarn run ci:prepublish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} + - name: Upload Artifacts + uses: actions/upload-artifact@v3 + with: + name: packages + path: | + packages/**/dist + release: runs-on: ubuntu-latest needs: build @@ -121,8 +128,7 @@ jobs: - name: Build run: yarn turbo run build --color --concurrency=5 - - name: Publish - run: yarn run ci:publish + - run: yarn config set npmAuthToken "${NODE_AUTH_TOKEN}" && yarn run ci:publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}