Skip to content
Merged
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
23 changes: 15 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9.15.4


- name: Use Node ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9.15.4
- uses: actions/cache@v2
with:
path: '**/node_modules'
Expand All @@ -43,12 +43,15 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '22.x'

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9.15.4

- uses: actions/cache@v2
with:
path: '**/node_modules'
Expand Down Expand Up @@ -77,6 +80,10 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '22.x'
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9.15.4

- uses: actions/cache@v2
with:
Expand Down
39 changes: 21 additions & 18 deletions .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,13 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Yarn
run: yarn --frozen-lockfile
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9.15.4

- name: PNPM
run: pnpm install --frozen-lockfile

- name: Run Verdaccio Docker
run: |
Expand All @@ -74,7 +78,7 @@ jobs:
verdaccio/verdaccio

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

- name: Setup Registry
uses: actions/setup-node@v4
Expand Down Expand Up @@ -102,16 +106,11 @@ jobs:

- name: Publish Packages
run: |
yarn lerna publish from-package --yes \
--no-git-tag-version \
--no-push \
--no-changelog \
--no-commit-hooks \
--no-git-reset \
--exact \
--force-publish \
--dist-tag ci

pnpm publish -r \
--no-git-checks \
--access public \
--tag ci \
--force
- name: Setup and Test
run: |
IFS='/' read -r library framework <<< "${{ matrix.e2e-project }}"
Expand Down Expand Up @@ -148,14 +147,18 @@ jobs:
registry-url: https://registry.npmjs.org/
scope: '@suites'
always-auth: true
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9.15.4

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

- name: Build
run: npx lerna run build
run: pnpm build

- name: Publish Packages
run: npx lerna publish ${{ github.event.inputs.strategy }} --yes --dist-tag ${{ github.event.inputs.dist_tag }}
run: pnpm publish -r ${{ github.event.inputs.strategy }} --access public --tag ${{ github.event.inputs.dist_tag }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
13 changes: 9 additions & 4 deletions .github/workflows/release-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,22 +58,27 @@ jobs:
- name: Prerelease Version (Exact Version)
if: ${{ github.event.inputs.release_type == 'prerelease' && github.event.inputs.exact_version }}
run: |
npx lerna version ${{ github.event.inputs.exact_version }} --yes --no-changelog
pnpm version ${{ github.event.inputs.exact_version }} \
--workspaces-update \
--no-git-tag-version \
--no-commit-hooks
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Prerelease Version
if: ${{ github.event.inputs.release_type == 'prerelease' && !github.event.inputs.exact_version }}
run: |
npx lerna version prerelease --yes \
pnpm version prerelease \
--preid ${{ github.event.inputs.preid }} \
--no-changelog
--workspaces-update \
--no-git-tag-version \
--no-commit-hooks
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Graduate Version
if: ${{ github.event.inputs.release_type == 'graduate' }}
run: npx lerna version graduate --yes
run: pnpm version --workspaces-update from-git
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/set-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ jobs:
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-modules-${{ hashFiles('**/pnpm-lock.yaml') }}

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

- name: Create Coverage Directory
run: mkdir -p ${{ github.workspace }}/coverage

- name: Test
run: yarn lerna exec yarn test --scope @suites/${{ matrix.project }}
run: pnpm --filter @contractual/${{ matrix.project }} run test
env:
JEST_JUNIT_OUTPUT_NAME: ${{ matrix.project }}.xml
JEST_JUNIT_OUTPUT_DIR: ${{ github.workspace }}/test-reports
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
"jest": "^29.7.0",
"jest-environment-node": "29.1.0",
"jest-junit": "^16.0.0",
"lerna": "^7.3.1",
"lint-staged": "^14.0.1",
"madge": "^7.0.0",
"micromatch": "4.0.8",
Expand Down
Loading
Loading