Skip to content

Commit

Permalink
chore(ci): move to npm from yarn due of errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dalisoft committed May 9, 2023
1 parent 5a41cda commit c800c24
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/lint_test_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand All @@ -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

0 comments on commit c800c24

Please sign in to comment.