ci(github): unite dry and regular yarn installation (#4899)

This commit is contained in:
Yaroslav Serhieiev
2026-01-07 11:43:31 +02:00
committed by GitHub
parent 4a356f4713
commit 1a30e652be
5 changed files with 9 additions and 23 deletions
+1 -3
View File
@@ -16,8 +16,6 @@ jobs:
node-version-file: '.nvmrc'
- name: Enable Corepack
run: corepack enable
- name: Security check (npq)
run: npx [email protected] install --pkgMgr yarn --dry-run
- name: Install dependencies
run: yarn install --immutable
run: NPQ_PKG_MGR=yarn npx npq install --immutable
- run: yarn remark -r .remarkrc.nightly.mjs .
+1 -3
View File
@@ -35,8 +35,6 @@ jobs:
node-version-file: '.nvmrc'
- name: Enable Corepack
run: corepack enable
- name: Security check (npq)
run: npx [email protected] install --pkgMgr yarn --dry-run
- name: Install dependencies
run: yarn install --immutable
run: NPQ_PKG_MGR=yarn npx npq install --immutable
- run: yarn docs:lint
+4 -6
View File
@@ -26,11 +26,10 @@ jobs:
node-version-file: '.nvmrc'
- name: Enable Corepack
run: corepack enable
- name: Security check (npq)
run: npx [email protected] install --pkgMgr yarn --dry-run
- name: Install dependencies
run: yarn install --immutable
run: npx npq install --immutable
env:
NPQ_PKG_MGR: yarn
DETOX_DISABLE_POD_INSTALL: true
DETOX_DISABLE_POSTINSTALL: true
- name: Lint source project
@@ -69,11 +68,10 @@ jobs:
node-version-file: '.nvmrc'
- name: Enable Corepack
run: corepack enable
- name: Security check (npq)
run: npx [email protected] install --pkgMgr yarn --dry-run
- name: Install dependencies
run: yarn install --immutable
run: npx npq install --immutable
env:
NPQ_PKG_MGR: yarn
DETOX_DISABLE_POD_INSTALL: true
DETOX_DISABLE_POSTINSTALL: true
- name: Unit tests
+1 -3
View File
@@ -18,10 +18,8 @@ jobs:
node-version-file: '.nvmrc'
- name: Enable Corepack
run: corepack enable
- name: Security check (npq)
run: npx [email protected] install --pkgMgr yarn --dry-run
- name: Install dependencies
run: yarn install --immutable
run: NPQ_PKG_MGR=yarn npx npq install --immutable
- name: Teardown old domains
run: yarn zx scripts/purge_expired_domains.mjs --olderThan ${{ github.event.inputs.days || '10' }}
env:
+2 -8
View File
@@ -31,13 +31,10 @@ jobs:
filters: |
website:
- 'website/**'
- name: Security check (npq)
working-directory: ./website
run: npx [email protected] install --pkgMgr yarn --dry-run
- name: Install and build
working-directory: ./website
run: |
yarn install
NPQ_PKG_MGR=yarn npx npq install
yarn build
gh-release:
if: github.event_name != 'pull_request'
@@ -54,9 +51,6 @@ jobs:
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }}
- name: Security check (npq)
working-directory: ./website
run: npx [email protected] install --pkgMgr yarn --dry-run
- name: Release to GitHub Pages
env:
USE_SSH: true
@@ -65,7 +59,7 @@ jobs:
git config --global user.email "[email protected]"
git config --global user.name "mobilewix"
cd website/
yarn install
NPQ_PKG_MGR=yarn npx npq install
yarn build
yarn docusaurus deploy
performance: