-
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.
- Loading branch information
Showing
2 changed files
with
67 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: js (build) | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'visual-js/**' | ||
- .github/workflows/js-build.yml | ||
pull_request: | ||
paths: | ||
- 'visual-js/**' | ||
- .github/workflows/js-build.yml | ||
|
||
defaults: | ||
run: | ||
working-directory: visual-js | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Node 18 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18.x | ||
- name: Build with lerna | ||
run: | | ||
corepack enable | ||
yarn install | ||
npx lerna run lint | ||
npx lerna run build | ||
npx lerna run test |
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,35 @@ | ||
name: js (release) | ||
|
||
on: | ||
workflow_dispatch: {} | ||
|
||
defaults: | ||
run: | ||
working-directory: visual-js | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Node 18 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18.x | ||
- name: Setup Git | ||
if: ${{ steps.prep.outputs.tag_name == '' }} | ||
run: | | ||
git config --global user.name "sauce-visual-bot" | ||
git config --global user.email "[email protected]" | ||
- name: Build | ||
run: | | ||
corepack enable | ||
yarn install | ||
npx lerna run build | ||
- name: upgrade & publish version(s) | ||
run: | | ||
npx changeset version | ||
npx changeset publish | ||
- name: Push to git | ||
run: | | ||
git push --follow-tags |