Skip to content

Commit

Permalink
chore: change CR layout (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin authored Aug 17, 2024
1 parent a6cb4d5 commit 24de2b8
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 28 deletions.
16 changes: 16 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
### Description

<!-- Please insert your description here and provide info about the "what" this PR is solving. -->

### Linked Issues

<!-- e.g. fixes #123 -->

### Additional Context

<!-- Is there anything you would like the reviewers to focus on? -->

---

> [!TIP]
> The author of this PR can publish a _preview release_ by commenting `/publish` below.
19 changes: 19 additions & 0 deletions .github/workflows/cr-comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Add continuous release label

on:
issue_comment:
types: [created]

permissions:
pull-requests: write

jobs:
label:
if: ${{ github.event.issue.pull_request && (github.event.comment.user.id == github.event.issue.user.id || github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'COLLABORATOR') && startsWith(github.event.comment.body, '/publish') }}
runs-on: ubuntu-latest

steps:
- uses: actions-ecosystem/action-add-labels@v1
with:
labels: cr-tracked
github_token: ${{ secrets.CR_PAT }}
20 changes: 20 additions & 0 deletions .github/workflows/cr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: CR

on:
pull_request:
branches: [main]
types: [opened, synchronize, labeled, ready_for_review]

permissions: {}

jobs:
release:
if: ${{ !github.event.pull_request.draft && contains(github.event.pull_request.labels.*.name, 'cr-tracked') }}
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: pnpm/[email protected]
- run: pnpm install
- run: pnpm prepack
- run: pnpx pkg-pr-new publish --compact --no-template --pnpm
28 changes: 0 additions & 28 deletions .github/workflows/publish-commit.yml

This file was deleted.

0 comments on commit 24de2b8

Please sign in to comment.