Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: release v1.0.0 packages #552

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Continuous Integration
name: Main Continuous Integration

on:
push:
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Release

on:
workflow_dispatch:

concurrency:
group: branch-live

jobs:
publish:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/live'
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
- name: Build
run: yarn build
- name: Publish
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
mv npmrc-ci .npmrc
npx turbo run release --concurrency 1 --
npx turbo run deploy --
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Push Changes
run: |
git fetch origin
git merge -m "Merge branch 'live' [skip ci]" origin/live
git push origin HEAD:live
Copy link
Contributor Author

@mtruongsa mtruongsa Feb 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@actong should I do a git checkout main and merge live to main so we don't have to do it manually? Or it has to do manually in case there are conflicts?

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: Testing Continuous Integration

on:
push:
branches:
- live
workflow_dispatch:

concurrency:
group: branch-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 'live' [skip ci]" origin/live
git push origin HEAD:live
Loading