Switch to using npm over yarn

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne Savolainen committed 2023-02-06 09:25:46 +02:00
1 parent c12561f7d8
commit e2733082ef
26 files changed
+8896 -36563

No files matched your search

+3 -3
View File
@@ -24,9 +24,9 @@ jobs:
- name: Generate Extensions API Reference using typedocs
run: |
yarn install
yarn run build:docs
npm install
npm run build:docs
- name: Verify that the markdown is valid
run: |
yarn run mkdocs:verify
npm run mkdocs:verify
+2 -2
View File
@@ -20,7 +20,7 @@ jobs:
node-version: ${{ matrix.node-version }}
- name: Install deps
run: yarn install
run: npm install
- name: Lint
run: yarn run lint
run: npm run lint
+5 -5
View File
@@ -34,12 +34,12 @@ jobs:
- name: Generate Extensions API Reference using typedocs
run: |
yarn install
yarn run build:docs
npm install
npm run build:docs
- name: Verify that the markdown is valid
run: |
yarn run mkdocs:verify
npm run mkdocs:verify
build:
name: Deploy docs
@@ -77,8 +77,8 @@ jobs:
- name: Generate Extensions API Reference using typedocs
run: |
yarn install --frozen-lockfile
yarn build:docs
npm ci
npm run build:docs
- name: mkdocs deploy master
if: contains(github.ref, 'refs/heads/master')
+2 -2
View File
@@ -37,8 +37,8 @@ jobs:
- name: Generate Extensions API Reference using typedocs
run: |
yarn install
yarn typedocs-extensions-api
npm install
npm run typedocs-extensions-api
- name: Checkout master branch from lens
uses: actions/checkout@v3
+3 -3
View File
@@ -27,12 +27,12 @@ jobs:
- name: Generate NPM packages
run: |
yarn install --frozen-lockfile
yarn run build
npm ci
npm run build
- name: Publish NPM package
run: |
npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
yarn lerna publish from-package --dist-tag master --no-push --no-git-tag-version --yes
npx lerna publish from-package --dist-tag master --no-push --no-git-tag-version --yes
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
+3 -3
View File
@@ -32,8 +32,8 @@ jobs:
- name: Generate NPM packages
run: |
yarn install --frozen-lockfile
yarn run build
npm ci
npm run build
- name: Publish NPM packages
run: |
@@ -41,7 +41,7 @@ jobs:
VERSION=$(cat lerna.json | jq '.version' --raw-output)
echo ${VERSION}
DIST_TAG=$(npm exec -- @k8slens/semver --prerelease 0 ${VERSION})
yarn lerna \
npx lerna \
publish from-package \
--no-push \
--no-git-tag-version \
+12 -12
View File
@@ -32,18 +32,18 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: Get yarn cache directory path
id: yarn-cache-dir-path
- name: Get npm cache directory path
id: npm-cache-dir-path
shell: bash
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
run: echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
id: npm-cache # use this to check for `cache-hit` (`steps.npm-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
path: ${{ steps.npm-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-yarn-
${{ runner.os }}-npm-
- uses: nick-fields/retry@v2
name: Install dependencies
@@ -51,9 +51,9 @@ jobs:
timeout_minutes: 20
max_attempts: 3
retry_on: error
command: yarn install --frozen-lockfile
command: npm ci
- run: yarn run test:unit
- run: npm run test:unit
name: Run tests
if: ${{ matrix.type == 'unit' }}
@@ -64,15 +64,15 @@ jobs:
minikube-version: latest
if: ${{ runner.os == 'Linux' && matrix.type == 'smoke' }}
- run: xvfb-run --auto-servernum --server-args='-screen 0, 1600x900x24' yarn run test:integration
- run: xvfb-run --auto-servernum --server-args='-screen 0, 1600x900x24' npm run test:integration
name: Run Linux integration tests
if: ${{ runner.os == 'Linux' && matrix.type == 'smoke' }}
- run: yarn run test:integration
- run: npm run test:integration
name: Run macOS integration tests
shell: bash
if: ${{ runner.os == 'macOS' && matrix.type == 'smoke' }}
- run: yarn run test:integration
- run: npm run test:integration
name: Run Windows integration tests
if: ${{ runner.os == 'Windows' && matrix.type == 'smoke' }}