-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes: #56
- Loading branch information
Showing
43 changed files
with
7,057 additions
and
2,165 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
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Build - React | ||
|
||
on: | ||
workflow_call: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- packages/react/** | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- packages/react/** | ||
|
||
# When pushing a new commit we should | ||
# cancel the previous test run to not | ||
# consume more runners than we need to. | ||
concurrency: | ||
group: ${{ github.ref }}_build_react | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: | ||
- 20.x | ||
- 22.x | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Node v${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install Core | ||
run: npm install -w @poppy-ui/core | ||
shell: bash | ||
|
||
- name: Build Core | ||
run: | | ||
npm run build -w @poppy-ui/core --if-present | ||
npm pack -w @poppy-ui/core | ||
PKG=$(ls poppy-ui-core-*.tgz) | ||
mv $PKG poppy-ui-core-${{ matrix.node-version }}.tgz | ||
shell: bash | ||
|
||
- name: Install React | ||
run: | | ||
npm install ./poppy-ui-core-${{ matrix.node-version }}.tgz -w @poppy-ui/react | ||
npm install -w @poppy-ui/react | ||
shell: bash | ||
|
||
- name: Build | ||
run: npm run build -w @poppy-ui/react --if-present |
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
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
Oops, something went wrong.