mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 03:26:36 +00:00
ci: replace Yarn with npm
This commit is contained in:
parent
1220f3b822
commit
2b11a8c6a0
2 changed files with 8 additions and 8 deletions
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
|
@ -9,17 +9,17 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/cache@v4
|
- uses: actions/cache@v4
|
||||||
id: yarn-cache
|
id: npm-cache
|
||||||
with:
|
with:
|
||||||
path: "**/node_modules"
|
path: ~/.npm
|
||||||
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
|
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
|
||||||
|
|
||||||
- name: Install dependencies, build, test, and lint the codebase
|
- name: Install dependencies, build, test, and lint the codebase
|
||||||
run: |
|
run: |
|
||||||
yarn
|
npm install
|
||||||
yarn build:lib
|
npm run build:lib
|
||||||
yarn test:types
|
npm run test:types
|
||||||
yarn lint
|
npm run lint
|
||||||
|
|
||||||
- name: Trigger deploy
|
- name: Trigger deploy
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
|
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
@ -17,7 +17,7 @@ jobs:
|
||||||
registry-url: "https://registry.npmjs.org"
|
registry-url: "https://registry.npmjs.org"
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
npm install --force
|
npm install
|
||||||
npm run build:docs & npm run build:lib
|
npm run build:docs & npm run build:lib
|
||||||
- name: Publish package (stable)
|
- name: Publish package (stable)
|
||||||
if: ${{ ! contains(github.ref, '-next') }}
|
if: ${{ ! contains(github.ref, '-next') }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue