Skip to content

Commit

Permalink
ci: release please
Browse files Browse the repository at this point in the history
  • Loading branch information
Ernest committed Jul 13, 2024
1 parent e32b2d4 commit 7025a0e
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 49 deletions.
61 changes: 12 additions & 49 deletions .github/workflows/release.yml
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 }}
9 changes: 9 additions & 0 deletions .release-please-manifest.json
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"
}
33 changes: 33 additions & 0 deletions release-please-config.json
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": ""
}

0 comments on commit 7025a0e

Please sign in to comment.