-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
4 changed files
with
5 additions
and
43 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 |
---|---|---|
|
@@ -16,7 +16,6 @@ runs: | |
- name: Install Dependencies | ||
shell: bash | ||
run: | | ||
corepack enable | ||
node -v | ||
pnpm -v | ||
pnpm install |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ on: | |
options: | ||
- beta | ||
- stable | ||
|
||
semverType: | ||
description: semver type? | ||
type: choice | ||
|
@@ -17,68 +16,31 @@ on: | |
- minor | ||
- major | ||
|
||
secrets: | ||
RELEASE_BOT_GITHUB_TOKEN: | ||
required: true | ||
|
||
name: Trigger Release | ||
|
||
env: | ||
PNPM_VERSION: 8.4.0 | ||
SEMVER_TYPE: ${{ github.event.inputs.semverType }} | ||
RELEASE_TYPE: ${{ github.event.inputs.releaseType }} | ||
|
||
jobs: | ||
start: | ||
runs-on: ubuntu-latest | ||
|
||
environment: release-${{ github.event.inputs.releaseType }}-${{ github.event.inputs.semverType }} | ||
steps: | ||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
if: ${{ steps.docs-change.outputs.docsChange == 'nope' }} | ||
with: | ||
node-version: 18 | ||
check-latest: true | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 10 | ||
token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }} | ||
|
||
- run: npm i -g pnpm@${PNPM_VERSION} | ||
|
||
- id: get-store-path | ||
run: echo STORE_PATH=$(pnpm store path) >> $GITHUB_OUTPUT | ||
|
||
- uses: actions/cache@v3 | ||
timeout-minutes: 5 | ||
id: cache-pnpm-store | ||
with: | ||
path: ${{ steps.get-store-path.outputs.STORE_PATH }} | ||
key: pnpm-store-${{ hashFiles('pnpm-lock.yaml') }} | ||
restore-keys: | | ||
pnpm-store- | ||
pnpm-store-${{ hashFiles('pnpm-lock.yaml') }} | ||
- run: pnpm install | ||
|
||
- name: install | ||
uses: ./.github/workflows/install | ||
- run: | | ||
pnpm run-all-checks | ||
pnpm clean | ||
pnpm build | ||
pnpm test:build | ||
- name: Configure git | ||
run: | | ||
git config user.name "vercel-release-bot" | ||
git config user.email "[email protected]" | ||
- name: Bump version and tag | ||
run: | | ||
node ./scripts/bump-next-version.js | ||
- name: Git push | ||
env: | ||
RELEASE_BOT_GITHUB_TOKEN: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }} | ||
|