Skip to content

Commit

Permalink
ci: release please (#147)
Browse files Browse the repository at this point in the history
Co-authored-by: Ernest <>
  • Loading branch information
soc221b authored Jun 30, 2024
1 parent 559070e commit 7d984e4
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 46 deletions.
58 changes: 12 additions & 46 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,52 +1,18 @@
name: Release

on:
schedule:
- cron: '0 0 * * 3'
push:
branches:
- main

jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write

strategy:
matrix:
node-version: [14.x]
name: release-please

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Use pnpm
uses: pnpm/action-setup@v2
with:
version: 6

- name: Install
run: pnpm install

- name: Lint
run: pnpm run lint

- name: Build
run: pnpm run build

- name: Test
run: pnpm run test
env:
CI: true

- name: Release
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
pnpm run release
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
- uses: googleapis/[email protected]
with:
delete-branch: true
reviewers: 'iendeavor'
token: ${{ secrets.RELEASE_PLEASE }}
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "0.2.0"
}
10 changes: 10 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"release-type": "node",
"exclude-paths": ["playground"],
"skip-github-release": true,
"include-component-in-tag": false,
"packages": {
".": {}
}
}

0 comments on commit 7d984e4

Please sign in to comment.