From c800c248cae98018cbc0e521f0c3f6cc622ea895 Mon Sep 17 00:00:00 2001 From: Davlatjon Shavkatov Date: Tue, 9 May 2023 21:36:56 +0500 Subject: [PATCH] chore(ci): move to `npm` from `yarn` due of errors --- .github/workflows/lint_test_release.yml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/lint_test_release.yml b/.github/workflows/lint_test_release.yml index a07ce3a0..c7369439 100644 --- a/.github/workflows/lint_test_release.yml +++ b/.github/workflows/lint_test_release.yml @@ -28,13 +28,13 @@ jobs: uses: actions/cache@v3 with: path: '**/node_modules' - key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} + key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} - name: Install - run: yarn --frozen-lockfile + run: npm ci - name: Lint code - run: yarn lint + run: npm run lint test: needs: lint runs-on: ${{ matrix.os }} @@ -56,13 +56,13 @@ jobs: uses: actions/cache@v3 with: path: '**/node_modules' - key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} + key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} - name: Install - run: yarn --frozen-lockfile + run: npm ci - name: Test code - run: yarn test + run: npm run test release: needs: test runs-on: ubuntu-22.04 @@ -79,17 +79,15 @@ jobs: uses: actions/cache@v3 with: path: '**/node_modules' - key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} + key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} - name: Install - run: yarn --frozen-lockfile - - name: semantic-release Prepare - run: yarn add semantic-release -W + run: npm ci - name: Build - run: yarn build + run: npm run build - name: Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: yarn semantic-release + run: npx semantic-release