Skip to content

Commit

Permalink
chore: add new github workflows and update sdk dependency version
Browse files Browse the repository at this point in the history
  • Loading branch information
mtruongsa committed Feb 3, 2025
1 parent a6db7d1 commit d781ba8
Show file tree
Hide file tree
Showing 4 changed files with 107 additions and 9 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
name: Continuous Integration

on:
push:
branches:
- main
workflow_dispatch:

concurrency:
group: branch-main
group: branch-release-live

jobs:
publish:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/release/live'
steps:
- name: Generate Token
id: generate_token
Expand Down Expand Up @@ -39,12 +37,12 @@ jobs:
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
npx turbo run release --concurrency 1 --filter=...[baseline] -- --skip.tag --skip.changelog
npx turbo run deploy --filter=...[baseline] --
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
git merge -m "Merge branch 'release/live' [skip ci]" origin/release/live
git push origin HEAD:release/live
50 changes: 50 additions & 0 deletions .github/workflows/main.continuous-integration.yml
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
50 changes: 50 additions & 0 deletions .github/workflows/testing.continuous-integration.yml
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
2 changes: 1 addition & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"license": "MIT",
"dependencies": {
"@evoke-platform/context": "latest",
"@evoke-platform/payment": "^1.0.0-dev.0",
"@evoke-platform/payment": "latest",
"@evoke-platform/ui-components": "latest"
},
"devDependencies": {
Expand Down

0 comments on commit d781ba8

Please sign in to comment.