Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/quiet-goats-pnpm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@talend/scripts-core': minor
---

Declare `@talend/scripts-config-prettier` and `@talend/scripts-config-stylelint` as real dependencies instead of phantom deps that only resolved because yarn's flat hoist happened to expose them (pnpm's isolated linker doesn't hoist, so they'd otherwise be missing). Also drop the `extends` command's jest-config-file generation, which relied on `@talend/scripts-config-jest` and is no longer relevant now that jest is being phased out.
5 changes: 5 additions & 0 deletions .changeset/six-otters-migrate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@talend/react-components': patch
---

Switch internal `build:lib:tsc` script invocation from `yarn run tsc` to `pnpm run tsc` and drop the now-unused `resolutions.minimist` field (pnpm doesn't read `resolutions`; the override is handled at the workspace root instead).
5 changes: 5 additions & 0 deletions .changeset/warm-llamas-hoist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@talend/http': patch
---

Remove the orphaned `jest` config block from `package.json` (dead config left over after tests moved off this in-package jest setup).
20 changes: 10 additions & 10 deletions .github/actions/setup-node/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: 'Setup nodejs'
author: 'Talend'
inputs:
NPM_TOKEN:
description: 'Token used for GitHub Packages auth (GITHUB_TOKEN, since @talend/locales-* packages are public)'
description: 'PAT used for GitHub Packages auth (GITHUB_TOKEN cannot read private cross-repo packages like @talend/daikon-tql-client)'
required: true

runs:
Expand All @@ -29,22 +29,22 @@ runs:
echo "//npm.pkg.github.com/:_authToken=${{ inputs.NPM_TOKEN }}" >> ~/.npmrc
fi

- name: Install yarn
- name: Install pnpm
shell: bash
run: npm i -g yarn
run: npm i -g pnpm

- name: Get yarn cache directory path
id: yarn-cache-dir-path
- name: Get pnpm store directory path
id: pnpm-cache-dir-path
shell: bash
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
run: echo "dir=$(pnpm store path)" >> $GITHUB_OUTPUT

- uses: actions/cache@v4
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
id: pnpm-cache # use this to check for `cache-hit` (`steps.pnpm-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
path: ${{ steps.pnpm-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-yarn-
${{ runner.os }}-pnpm-

- name: Cache for Turbo
uses: rharkor/caching-for-turbo@0abc2381e688c4d2832f0665a68a01c6e82f0d6c #v2.3.11
18 changes: 9 additions & 9 deletions .github/workflows/changeset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Use Node.js
uses: ./.github/actions/setup-node
with:
NPM_TOKEN: ${{ github.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: has changeset file
id: changesetfiles
Expand All @@ -50,29 +50,29 @@ jobs:
- name: Install and Build
if: steps.changesetfiles.outputs.count == 1
run: |
yarn --frozen-lockfile
yarn build
pnpm install --frozen-lockfile
pnpm build
env:
NODE_AUTH_TOKEN: ${{ github.token }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Install but do not build
if: steps.changesetfiles.outputs.count > 1
run: yarn --ignore-scripts --frozen-lockfile
run: pnpm install --ignore-scripts --frozen-lockfile
env:
NODE_AUTH_TOKEN: ${{ github.token }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@a45c4d594aa4e2c509dc14a9f2b3b67ba3780d0d #v1.9.0
with:
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: yarn release
publish: pnpm release
commit: "chore: prepare release"
title: "chore: prepare release"
env:
GITHUB_TOKEN: ${{ secrets.CHANGESET_GITHUB_TOKEN }}
NPM_TOKEN: ${{ github.token }}
NODE_AUTH_TOKEN: ${{ github.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

update-cdn-content:
needs: release
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@ jobs:
- name: Use Node.js
uses: ./.github/actions/setup-node
with:
NPM_TOKEN: ${{ github.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Install
working-directory: ./
env:
NODE_AUTH_TOKEN: ${{ github.token }}
run: yarn install --frozen-lockfile
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpm install --frozen-lockfile

- name: Build
run: yarn build
run: pnpm build

- name: Build Demo
run: yarn storybook:build
run: pnpm storybook:build

- name: Checkout demo branch
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #v7.0.1
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@ jobs:
- name: Use Node.js
uses: ./.github/actions/setup-node
with:
NPM_TOKEN: ${{ github.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Upgrade dependencies
run: |
yarn --frozen-lockfile --ignore-scripts
yarn talend-upgrade-deps --ignore-scripts
yarn talend-upgrade-deps --scope=@talend --latest --ignore-scripts
yarn talend-upgrade-deps --latest --dry > dependencies-latest.txt
pnpm install --frozen-lockfile --ignore-scripts
pnpm talend-upgrade-deps --ignore-scripts
pnpm talend-upgrade-deps --scope=@talend --latest --ignore-scripts
pnpm talend-upgrade-deps --latest --dry > dependencies-latest.txt
git add dependencies-latest.txt
env:
NODE_AUTH_TOKEN: ${{ github.token }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Create Pull Request
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 #v8.1.1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/icons.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Use Node.js
uses: ./.github/actions/setup-node
with:
NPM_TOKEN: ${{ github.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Download icons
run: npx @talend/figma-icons-downloader
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/pr-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@ jobs:
- name: Use Node.js
uses: ./.github/actions/setup-node
with:
NPM_TOKEN: ${{ github.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Install
working-directory: ./
env:
NODE_AUTH_TOKEN: ${{ github.token }}
run: yarn install --frozen-lockfile
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpm install --frozen-lockfile

- name: Build
run: yarn build
run: pnpm build

- name: Build Demo
run: yarn storybook:build
run: pnpm storybook:build

- name: Checkout demo branch
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #v7.0.1
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/pr-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,22 @@ jobs:
- name: Use Node.js
uses: ./.github/actions/setup-node
with:
NPM_TOKEN: ${{ github.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Install
run: yarn install --frozen-lockfile --ignore-scripts
run: pnpm install --frozen-lockfile --ignore-scripts
env:
NODE_AUTH_TOKEN: ${{ github.token }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Build
run: yarn build
run: pnpm build

- name: eslint + stylelint
continue-on-error: true
id: eslint
run: |
yarn eslint:run --concurrency=1
yarn stylelint:run --concurrency=1
pnpm eslint:run --concurrency=1
pnpm stylelint:run --concurrency=1

- name: Merge lint
uses: ./.github/actions/lint-merge-report
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/pr-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@ jobs:
- name: Use Node.js
uses: ./.github/actions/setup-node
with:
NPM_TOKEN: ${{ github.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Install
run: yarn install --frozen-lockfile
run: pnpm install --frozen-lockfile
env:
NODE_AUTH_TOKEN: ${{ github.token }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Build
run: yarn build
run: pnpm build

- name: Test
run: |
yarn vitest:cov --concurrency=1
pnpm vitest:cov --concurrency=1

- name: Jest Coverage Comment
uses: MishaKav/jest-coverage-comment@642ef024cc554a34b7082cea12c7bf63575ae151 #1.0.36
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,29 +25,29 @@ jobs:
- name: Use Node.js
uses: ./.github/actions/setup-node
with:
NPM_TOKEN: ${{ github.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Install
run: yarn install --frozen-lockfile
run: pnpm install --frozen-lockfile

- name: Build
run: yarn build
run: pnpm build

- name: Pre-release talend/ui
id: version
run: |
# FIXME: trigger changeset change without commit
# generate a random small version
POST_VERSION_RANDOM=$(node -e "console.log(Math.floor(Math.random() * 10000))")
yarn changeset pre enter next-${POST_VERSION_RANDOM}
yarn changeset version
pnpm changeset pre enter next-${POST_VERSION_RANDOM}
pnpm changeset version
# echo diff to see version changes and save it to reuse it after
{
echo "VERSION_DIFF<<EOF"
git diff | grep -E 'next|name'
echo "EOF"
} >> $GITHUB_OUTPUT
yarn changeset publish --no-git-checks
pnpm changeset publish --no-git-checks

- name: Comment on the PR with the package version
uses: actions-ecosystem/action-create-comment@v1
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/visual-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ jobs:
- name: Use Node.js
uses: ./.github/actions/setup-node
with:
NPM_TOKEN: ${{ github.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Install dependencies
run: |
yarn --frozen-lock
yarn build
pnpm install --frozen-lockfile
pnpm build

- name: Publish PR to DS Chromatic
if: github.ref != 'refs/heads/master'
Expand Down
52 changes: 0 additions & 52 deletions .github/workflows/yarn-deduplicate.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
nodejs 24.14.0
yarn 1.22.22
pnpm 11.24.0
Loading
Loading