Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: manually trigger rc CI #1660

Merged
merged 3 commits into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .changeset/soft-wombats-smell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
11 changes: 4 additions & 7 deletions .github/workflows/rc-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@ on:
pull_request:
branches:
- "master"
push:
branches:
- "rc/*"

jobs:
release-pr:
if: ${{ github.event_name == 'push' || contains(github.head_ref, 'rc/') }}
# Switch to `true` for release candidates
if: ${{ false && startsWith(github.head_ref, 'rc/') }}
name: "Release RC to npm"
runs-on: ubuntu-latest
permissions: write-all
Expand All @@ -36,8 +34,8 @@ jobs:
uses: frabert/replace-string-action@v2
id: rc_name
with:
string: ${{ github.event_name == 'pull_request' && github.head_ref || github.ref }}
pattern: ${{ github.event_name == 'pull_request' && 'rc/' || 'refs/heads/rc/' }}
string: github.head_ref
pattern: "rc/"
replace-with: "rc-"

- name: Release to @${{ steps.rc_name.outputs.replaced }} tag on npm
Expand All @@ -55,7 +53,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Add PR comment
if: ${{ github.event_name == 'pull_request' && contains(github.head_ref, 'rc/') }}
uses: mshick/add-pr-comment@v2
with:
message: |
Expand Down
Loading