From 204342e8e0388aaa3064a340cc17ef3a4c8b63bc Mon Sep 17 00:00:00 2001 From: szymonrybczak Date: Sat, 6 Jul 2024 10:02:45 +0200 Subject: [PATCH 1/2] ci: install dependencies before publishing packages --- .github/workflows/nigthly-release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/nigthly-release.yml b/.github/workflows/nigthly-release.yml index 1f05e875c..1a11e0971 100644 --- a/.github/workflows/nigthly-release.yml +++ b/.github/workflows/nigthly-release.yml @@ -21,6 +21,9 @@ jobs: uses: actions/setup-node@v3 with: node-version: '20' + cache: yarn + - name: Install dependencies + run: yarn --frozen-lockfile env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} From def807116f81ffc23e9874ca92f9c0d8fbbc2379 Mon Sep 17 00:00:00 2001 From: szymonrybczak Date: Sat, 6 Jul 2024 10:05:24 +0200 Subject: [PATCH 2/2] fix: add env variables to relevant block --- .github/workflows/nigthly-release.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/nigthly-release.yml b/.github/workflows/nigthly-release.yml index 1a11e0971..e98a822a6 100644 --- a/.github/workflows/nigthly-release.yml +++ b/.github/workflows/nigthly-release.yml @@ -24,8 +24,6 @@ jobs: cache: yarn - name: Install dependencies run: yarn --frozen-lockfile - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: 'Setup git user' run: | @@ -48,6 +46,7 @@ jobs: if: steps.check.outputs.changed == 'true' env: GH_TOKEN: ${{ github.token }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: | # Get the current commit hash COMMIT_HASH=$(git rev-parse --short HEAD)