mirror of
https://github.com/hanzoai/Detox.git
synced 2026-09-24 16:55:12 +00:00
ci(github): unite dry and regular yarn installation (#4899)
This commit is contained in:
committed by
GitHub
parent
4a356f4713
commit
1a30e652be
@@ -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 .
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user