Skip to content

Commit ae64189

Browse files
authored
Merge branch 'main' into feat/code-mod-export-paths
2 parents a0417f8 + e718844 commit ae64189

File tree

29 files changed

+840
-704
lines changed

29 files changed

+840
-704
lines changed

.github/workflows/build.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: 'Build w/ React18 & 19'
2+
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
build:
8+
name: 'Build'
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
react: ['18', '19']
13+
env:
14+
CYPRESS_INSTALL_BINARY: 0
15+
steps:
16+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
17+
18+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
19+
with:
20+
node-version-file: '.nvmrc'
21+
cache: 'yarn'
22+
23+
- name: Install
24+
run: yarn install --immutable
25+
26+
- name: Install 18
27+
if: ${{ matrix.react == '18' }}
28+
run: |
29+
yarn add "@types/react@18" "@types/react-dom@18" --dev
30+
yarn add react@18 react-dom@18
31+
32+
- name: Build
33+
run: yarn build
34+
35+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
36+
with:
37+
name: build-${{ matrix.react }}
38+
path: packages/*/dist

.github/workflows/chromatic.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
run: yarn install --immutable
2424

2525
- name: Publish to Chromatic
26-
uses: chromaui/action@20c7e42e1b2f6becd5d188df9acb02f3e2f51519 # v13.2.0
26+
uses: chromaui/action@4ffe736a2a8262ea28067ff05a13b635ba31ec05 # v13.3.0
2727
with:
2828
token: ${{ secrets.GITHUB_TOKEN }}
2929
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242

4343
# Initializes the CodeQL tools for scanning.
4444
- name: Initialize CodeQL
45-
uses: github/codeql-action/init@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3
45+
uses: github/codeql-action/init@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # v3.30.5
4646
with:
4747
languages: ${{ matrix.language }}
4848
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -53,7 +53,7 @@ jobs:
5353
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5454
# If this step fails, then you should remove it and run the build manually (see below)
5555
- name: Autobuild
56-
uses: github/codeql-action/autobuild@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3
56+
uses: github/codeql-action/autobuild@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # v3.30.5
5757

5858
# ℹ️ Command-line programs to run using the OS shell.
5959
# 📚 https://git.io/JvXDl
@@ -67,4 +67,4 @@ jobs:
6767
# make release
6868

6969
- name: Perform CodeQL Analysis
70-
uses: github/codeql-action/analyze@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3
70+
uses: github/codeql-action/analyze@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # v3.30.5

.github/workflows/main.yml

Lines changed: 2 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -35,61 +35,14 @@ jobs:
3535
compression: 'gzip'
3636
clean-script: 'clean:remove-modules'
3737

38-
install:
39-
name: 'Install Dependencies'
40-
runs-on: ubuntu-latest
41-
steps:
42-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
43-
44-
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
45-
with:
46-
node-version-file: '.nvmrc'
47-
cache: 'yarn'
48-
49-
- name: Install and Build
50-
run: yarn install --immutable
38+
build:
39+
uses: './.github/workflows/build.yml'
5140

5241
test:
5342
needs: ['build']
5443
uses: './.github/workflows/test.yml'
5544

56-
build:
57-
needs: ['install']
58-
name: 'Build'
59-
runs-on: ubuntu-latest
60-
strategy:
61-
matrix:
62-
react: ['18', '19']
63-
env:
64-
CYPRESS_INSTALL_BINARY: 0
65-
steps:
66-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
67-
68-
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
69-
with:
70-
node-version-file: '.nvmrc'
71-
cache: 'yarn'
72-
73-
- name: Install
74-
run: yarn install --immutable
75-
76-
- name: Install 19
77-
if: ${{ matrix.react == '19' }}
78-
run: |
79-
echo "$(jq '.resolutions += {"@types/react": "npm:types-react@rc", "@types/react-dom": "npm:types-react-dom@rc" }' package.json)" > package.json
80-
yarn add react@rc react-dom@rc
81-
yarn
82-
83-
- name: Build
84-
run: yarn build
85-
86-
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
87-
with:
88-
name: build-${{ matrix.react }}
89-
path: packages/*/dist
90-
9145
lint:
92-
needs: ['install']
9346
runs-on: ubuntu-latest
9447
env:
9548
CYPRESS_INSTALL_BINARY: 0

.github/workflows/release-snapshot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ name: 'Release - Snapshot'
33
on: workflow_dispatch
44

55
jobs:
6+
build:
7+
uses: './.github/workflows/build.yml'
8+
69
test:
10+
needs: ['build']
711
uses: './.github/workflows/test.yml'
812
with:
913
reportCoverage: false

0 commit comments

Comments
 (0)