-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Ernest
committed
Jul 13, 2024
1 parent
e32b2d4
commit 7025a0e
Showing
3 changed files
with
54 additions
and
49 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 |
---|---|---|
@@ -1,55 +1,18 @@ | ||
name: Release | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 1 * *" | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
strategy: | ||
matrix: | ||
node-version: | ||
- 18 | ||
package: | ||
- babel | ||
- cli | ||
- flow | ||
- prepare | ||
- swc | ||
- typescript | ||
- unplugin | ||
name: release-please | ||
|
||
jobs: | ||
release-please: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Use pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 7 | ||
|
||
- name: Install dependencies | ||
run: pnpm i | ||
|
||
- name: Release | ||
run: | | ||
git config --local user.email "github-actions[bot]@users.noreply.github.com" | ||
git config --local user.name "github-actions[bot]" | ||
cd packages/${{ matrix.package }} | ||
pnpm run release | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v6 | ||
- uses: googleapis/[email protected] | ||
with: | ||
delete-branch: true | ||
reviewers: "iendeavor" | ||
branch: bot/release/${{ matrix.package }} | ||
title: "chore(release): @import-meta-env/${{ matrix.package }}" | ||
token: ${{ secrets.RELEASE_PLEASE }} |
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,9 @@ | ||
{ | ||
"packages/babel": "0.4.5", | ||
"packages/cli": "0.6.8", | ||
"packages/flow": "0.1.3", | ||
"packages/prepare": "0.1.13", | ||
"packages/swc": "0.4.12", | ||
"packages/typescript": "0.3.3", | ||
"packages/unplugin": "0.5.1" | ||
} |
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,33 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", | ||
"release-type": "node", | ||
"exclude-paths": ["packages/examples"], | ||
"include-component-in-tag": true, | ||
"include-v-in-tag": false, | ||
"packages": { | ||
"packages/babel": { | ||
"component": "babel" | ||
}, | ||
"packages/cli": { | ||
"component": "cli" | ||
}, | ||
"packages/flow": { | ||
"component": "flow" | ||
}, | ||
"packages/prepare": { | ||
"component": "prepare" | ||
}, | ||
"packages/swc": { | ||
"component": "swc" | ||
}, | ||
"packages/typescript": { | ||
"component": "typescript" | ||
}, | ||
"packages/unplugin": { | ||
"component": "unplugin" | ||
} | ||
}, | ||
"pull-request-title-pattern": "chore(release): @import-meta-env/${component}@${version}", | ||
"skip-github-release": true, | ||
"tag-separator": "" | ||
} |