-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add new github workflows and update sdk dependency version
- Loading branch information
Showing
4 changed files
with
107 additions
and
9 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,50 @@ | ||
name: Continuous Integration | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: branch-main | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Generate Token | ||
id: generate_token | ||
uses: tibdex/github-app-token@v1 | ||
with: | ||
app_id: ${{ vars.TOKEN_APP_ID }} | ||
private_key: ${{ secrets.TOKEN_APP_PRIVATE_KEY }} | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 5 | ||
token: ${{ steps.generate_token.outputs.token }} | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- name: Setup | ||
run: | | ||
yarn install | ||
git tag baseline HEAD^ | ||
echo Using baseline: | ||
git log -1 --oneline baseline | ||
- name: Build | ||
run: yarn build --filter=...[baseline] | ||
- name: Publish | ||
run: | | ||
git config user.name "GitHub Actions Bot" | ||
git config user.email "<>" | ||
mv npmrc-ci .npmrc | ||
npx turbo run release --concurrency 1 --filter=...[baseline] -- --prerelease dev --skip.tag --skip.changelog | ||
npx turbo run deploy --filter=...[baseline] -- --tag dev | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
- name: Push Changes | ||
run: | | ||
git fetch origin | ||
git merge -m "Merge branch 'main' [skip ci]" origin/main | ||
git push origin HEAD:main |
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,50 @@ | ||
name: Continuous Integration | ||
|
||
on: | ||
push: | ||
branches: | ||
- release/live | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: branch-release-live | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Generate Token | ||
id: generate_token | ||
uses: tibdex/github-app-token@v1 | ||
with: | ||
app_id: ${{ vars.TOKEN_APP_ID }} | ||
private_key: ${{ secrets.TOKEN_APP_PRIVATE_KEY }} | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 5 | ||
token: ${{ steps.generate_token.outputs.token }} | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- name: Setup | ||
run: | | ||
yarn install | ||
git tag baseline HEAD^ | ||
echo Using baseline: | ||
git log -1 --oneline baseline | ||
- name: Build | ||
run: yarn build --filter=...[baseline] | ||
- name: Publish | ||
run: | | ||
git config user.name "GitHub Actions Bot" | ||
git config user.email "<>" | ||
mv npmrc-ci .npmrc | ||
npx turbo run release --concurrency 1 --filter=...[baseline] -- --prerelease testing --skip.tag --skip.changelog | ||
npx turbo run deploy --filter=...[baseline] -- --tag testing | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
- name: Push Changes | ||
run: | | ||
git fetch origin | ||
git merge -m "Merge branch 'release/live' [skip ci]" origin/release/live | ||
git push origin HEAD:release/live |
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