-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into mochi-web-preview
- Loading branch information
Showing
10 changed files
with
1,148 additions
and
21 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,30 @@ | ||
name: Vercel Preview Deployment | ||
env: | ||
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | ||
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | ||
on: | ||
release: | ||
types: [prereleased] | ||
jobs: | ||
Deploy-Preview: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- uses: pnpm/action-setup@v2 | ||
name: Install pnpm | ||
id: pnpm-install | ||
with: | ||
version: 7 | ||
run_install: false | ||
- name: Install Vercel CLI | ||
run: npm install --global vercel@latest | ||
- name: Pull Vercel Environment Information | ||
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} | ||
- name: Build Project Artifacts | ||
run: vercel build --token=${{ secrets.VERCEL_TOKEN }} | ||
- name: Deploy Project Artifacts to Vercel | ||
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} |
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,40 @@ | ||
name: Release web | ||
|
||
on: | ||
push: | ||
branches: | ||
- cicd | ||
- main | ||
- mochi-web-preview | ||
|
||
permissions: | ||
contents: read # for checkout | ||
|
||
jobs: | ||
release-web: | ||
permissions: | ||
contents: write # to be able to publish a GitHub release | ||
issues: write # to be able to comment on released issues | ||
pull-requests: write # to be able to comment on released pull requests | ||
id-token: write # to enable use of OIDC for npm provenance | ||
name: release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 # v3 | ||
with: | ||
fetch-depth: 0 # to be able to checkout any commit | ||
persist-credentials: false # <--- this | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 6.32.9 | ||
- uses: actions/setup-node@v3 # v3 | ||
with: | ||
cache: pnpm | ||
node-version: 18 | ||
- name: Install dependencies | ||
run: pnpm install | ||
# pinned version updated automatically by Renovate. | ||
# details at https://semantic-release.gitbook.io/semantic-release/usage/installation#global-installation | ||
- run: pnpm dlx [email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_PAT }} |
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 @@ | ||
{ | ||
"branches": [ | ||
"main", | ||
{ | ||
"name": "mochi-web-preview", | ||
"prerelease": "rc" | ||
}, | ||
{ | ||
"name": "cicd", | ||
"prerelease": "ci" | ||
} | ||
], | ||
"plugins": [ | ||
"@semantic-release/commit-analyzer", | ||
[ | ||
"@semantic-release/npm", | ||
{ | ||
"npmPublish": false, | ||
"pkgRoot": "apps/mochi-web" | ||
} | ||
], | ||
[ | ||
"@semantic-release/github", | ||
{ | ||
"successComment": false | ||
} | ||
], | ||
["@semantic-release/git", { | ||
"assets": ["apps/mochi-web/package.json"] | ||
}] | ||
] | ||
} |
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,25 @@ | ||
RELEASE_BRANCH=main | ||
BETA_BRANCH=mochi-web-preview | ||
DEVELOP_BRANCH=develop | ||
|
||
.PHONY: release | ||
release: | ||
git checkout $(BETA_BRANCH) && git pull origin $(BETA_BRANCH) && \ | ||
git checkout $(RELEASE_BRANCH) && git pull origin $(RELEASE_BRANCH) && \ | ||
git merge $(BETA_BRANCH) --no-edit --no-ff && \ | ||
git push origin $(RELEASE_BRANCH) && \ | ||
git checkout $(DEVELOP_BRANCH) | ||
|
||
.PHONY: release-preview | ||
release-preview: sync-release | ||
git checkout $(DEVELOP_BRANCH) && git pull origin $(DEVELOP_BRANCH) && \ | ||
git checkout $(BETA_BRANCH) && git pull origin $(BETA_BRANCH) && \ | ||
git merge $(DEVELOP_BRANCH) --no-edit --no-ff && \ | ||
git push origin $(BETA_BRANCH) && \ | ||
git checkout $(DEVELOP_BRANCH) && git push origin $(DEVELOP_BRANCH) | ||
|
||
.PHONY: sync-release | ||
sync-release: | ||
git checkout $(RELEASE_BRANCH) && git pull origin $(RELEASE_BRANCH) && \ | ||
git checkout $(BETA_BRANCH) && git pull origin $(BETA_BRANCH) && \ | ||
git merge $(RELEASE_BRANCH) --no-edit --no-ff |
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
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
Oops, something went wrong.