-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c476d51
commit 6d9c693
Showing
7 changed files
with
61 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,9 @@ | |
|
||
name: build | ||
|
||
env: | ||
PNPM_VERSION: 9.15.2 | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
@@ -33,10 +36,16 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: ${{ env.PNPM_VERSION }} | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/[email protected] | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'pnpm' | ||
|
||
- name: Load cached dependencies | ||
uses: actions/[email protected] | ||
|
@@ -46,12 +55,12 @@ jobs: | |
**/node_modules | ||
**/.turbo | ||
/home/runner/.cache/Cypress | ||
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }} | ||
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
|
||
- name: Install dependencies | ||
id: install-dependencies | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: npm install | ||
run: pnpm install | ||
|
||
# - name: Fix code style linting errors | ||
# id: lint-fix | ||
|
@@ -90,25 +99,32 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
|
||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: ${{ env.PNPM_VERSION }} | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/[email protected] | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies | ||
id: install-dependencies | ||
run: npm install | ||
run: pnpm install | ||
|
||
- name: Try to build the packages | ||
id: build-packages | ||
run: npm run build:pm | ||
run: pnpm run build:pm | ||
|
||
- name: Test ${{ matrix.test-spec.name }} | ||
id: cypress | ||
uses: cypress-io/[email protected] | ||
with: | ||
cache-key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }} | ||
start: npm run serve | ||
start: pnpm run serve | ||
wait-on: 'http://localhost:3000' | ||
spec: ${{ matrix.test-spec.spec }} | ||
project: ./tests | ||
|
@@ -143,10 +159,17 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
|
||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: ${{ env.PNPM_VERSION }} | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/[email protected] | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'pnpm' | ||
|
||
- name: Load cached dependencies | ||
uses: actions/[email protected] | ||
|
@@ -156,16 +179,16 @@ jobs: | |
**/node_modules | ||
**/.turbo | ||
/home/runner/.cache/Cypress | ||
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }} | ||
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
|
||
- name: Install dependencies | ||
id: install-dependencies | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: npm install | ||
run: pnpm install | ||
|
||
- name: Try to build the packages | ||
id: build-packages | ||
run: npm run build:ci | ||
run: pnpm run build:ci | ||
|
||
- name: Soft release | ||
id: soft-release | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
name: Publish | ||
|
||
env: | ||
PNPM_VERSION: 9.15.2 | ||
|
||
on: | ||
push: | ||
branches: | ||
|
@@ -31,11 +34,17 @@ jobs: | |
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
|
||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: ${{ env.PNPM_VERSION }} | ||
|
||
- name: Setup Node ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
registry-url: 'https://registry.npmjs.org/' | ||
cache: 'pnpm' | ||
|
||
- name: Load cached dependencies | ||
uses: actions/[email protected] | ||
|
@@ -45,18 +54,18 @@ jobs: | |
**/node_modules | ||
**/.turbo | ||
/home/runner/.cache/Cypress | ||
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }} | ||
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
|
||
- name: Install Dependencies | ||
run: npm ci | ||
run: pnpm i | ||
|
||
- name: Create Release PR or publish stable version to npm | ||
id: changesets | ||
uses: changesets/action@v1 | ||
with: | ||
createGithubReleases: false | ||
publish: npm run publish | ||
version: npm run version | ||
publish: pnpm run publish | ||
version: pnpm run version | ||
title: ${{ github.ref_name == 'main' && 'Publish a new stable version' || 'Publish a new pre-release version' }} | ||
commit: >- | ||
${{ github.ref_name == 'main' && 'chore(release): publish a new release version' || 'chore(release): publish a new pre-release version' }} | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.