diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 3955c5aac3..42f8100924 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -22,32 +22,23 @@ jobs: strategy: matrix: # supporting primarily LTS - # There is a problem in colliding installation of dependencies - # do not know yet, what is causing this, but any combination except 18 is not working corectly - # @TODO: https://jira.almacareer.tech/browse/DS-1402 - # node-version: [18, 20, 22] - node-version: [18] + node-version: [18, 20, 22] steps: - name: Checkout uses: actions/checkout@v4 - - name: Set up Node - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node-version }} - - name: Enable Corepack run: corepack enable - - name: Fetch Git history - run: git fetch --no-tags --depth=50 origin main + - name: Configure Node + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: 'yarn' - name: Install dependencies - uses: bahmutov/npm-install@v1.10.2 - with: - useRollingCache: true - install-command: yarn --immutable + run: yarn --immutable --inline-builds - name: Build packages run: yarn build diff --git a/.github/workflows/commitlint.yaml b/.github/workflows/commitlint.yaml index 4811ffd337..6b571521db 100644 --- a/.github/workflows/commitlint.yaml +++ b/.github/workflows/commitlint.yaml @@ -13,22 +13,17 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Set up Node - uses: actions/setup-node@v4 - with: - node-version-file: '.nvmrc' - - name: Enable Corepack run: corepack enable - - name: Fetch Git history - run: git fetch --no-tags --depth=50 origin main + - name: Configure Node + uses: actions/setup-node@v4 + with: + node-version-file: '.nvmrc' + cache: 'yarn' - name: Install dependencies - uses: bahmutov/npm-install@v1.10.2 - with: - useRollingCache: true - install-command: yarn --immutable + run: yarn --immutable --inline-builds - name: Run Commitlint run: npx commitlint --color --verbose --from $(git merge-base origin/main HEAD) diff --git a/.github/workflows/component-analysis.yaml b/.github/workflows/component-analysis.yaml index 1dde437e17..9d046da1a4 100644 --- a/.github/workflows/component-analysis.yaml +++ b/.github/workflows/component-analysis.yaml @@ -15,19 +15,17 @@ jobs: # Omlet.dev uses Git History for analysis; Disable shallow clone fetch-depth: 0 + - name: Enable Corepack + run: corepack enable + - name: Configure Node uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' - - - name: Enable Corepack - run: corepack enable + cache: 'yarn' - name: Install dependencies - uses: bahmutov/npm-install@v1.10.2 - with: - useRollingCache: true - install-command: yarn --immutable + run: yarn --immutable --inline-builds - name: Analyze run: npx omlet analyze diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index ad75898fb2..820057b8b8 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -41,19 +41,17 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up Node + - name: Enable Corepack + run: corepack enable + + - name: Configure Node uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' - - - name: Enable Corepack - run: corepack enable + cache: 'yarn' - name: Install dependencies - uses: bahmutov/npm-install@v1.10.2 - with: - useRollingCache: true - install-command: yarn --immutable + run: yarn --immutable --inline-builds # Wait for the Netlify preview URL to be ready - name: Wait for Netlify Deploy diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index f3a12949ea..3373ecd038 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -16,19 +16,17 @@ jobs: - name: Clone repository uses: actions/checkout@v4 - - name: Set up Node.js + - name: Enable Corepack + run: corepack enable + + - name: Configure Node.js uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' - - - name: Enable Corepack - run: corepack enable + cache: 'yarn' - name: Install dependencies - uses: bahmutov/npm-install@v1.10.2 - with: - useRollingCache: true - install-command: yarn --immutable + run: yarn --immutable --inline-builds - name: Build run: yarn build diff --git a/.github/workflows/test-web-twig.yaml b/.github/workflows/test-web-twig.yaml index e85fd4fae5..1bde5be70c 100644 --- a/.github/workflows/test-web-twig.yaml +++ b/.github/workflows/test-web-twig.yaml @@ -21,19 +21,17 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up Node + - name: Enable Corepack + run: corepack enable + + - name: Configure Node uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' - - - name: Enable Corepack - run: corepack enable + cache: 'yarn' - name: Install dependencies - uses: bahmutov/npm-install@v1.10.2 - with: - useRollingCache: true - install-command: yarn --immutable + run: yarn --immutable --inline-builds - name: Build Icons working-directory: ./packages/icons diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 7b687daf30..f9551d0f17 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -20,22 +20,20 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Set up Node + - name: Enable Corepack + run: corepack enable + + - name: Configure Node uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' - - - name: Enable Corepack - run: corepack enable + cache: 'yarn' - name: Fetch Git history run: git fetch --no-tags --depth=50 origin main - name: Install dependencies - uses: bahmutov/npm-install@v1.10.2 - with: - useRollingCache: true - install-command: yarn --immutable + run: yarn --immutable --inline-builds - name: Build run: yarn build diff --git a/Makefile b/Makefile index 6743d395a1..07f2c1d3e1 100644 --- a/Makefile +++ b/Makefile @@ -30,6 +30,7 @@ help: ## Outputs this help screen ## —— Dependencies 📦 —————————————————————————————————————————————————————————————— install: ## Install dependencies + corepack enable $(PKG_MANAGER) $(PKG_MANAGER_INSTALL) $(PKG_MANAGER_FLAGS) && touch node_modules outdated: ## List outdated dependencies