-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(build-and-upload): migrate to a reusable workflow
- Loading branch information
1 parent
e517f84
commit c96ef55
Showing
3 changed files
with
34 additions
and
27 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Build and Upload Artifacts | ||
|
||
on: | ||
workflow_call: | ||
secrets: | ||
npm_token: | ||
required: true | ||
|
||
jobs: | ||
build-and-upload: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Run Setup | ||
uses: ./.github/actions/setup | ||
with: | ||
npm_token: ${{ secrets.npm_token }} | ||
- name: Build | ||
shell: bash | ||
run: yarn lerna run build --since=origin/master --include-dependencies | ||
- name: Upload | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ci-builds-${{ github.run_id }}-${{ github.run_attempt }} | ||
path: | | ||
packages/core/dist/ | ||
packages/style/dist/ | ||
if-no-files-found: ignore |
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