Skip to content

Commit

Permalink
fix: Improve RC process (#70)
Browse files Browse the repository at this point in the history
* fix: commit after entering RC

* chore: create release candidate on release branch
  • Loading branch information
Marabyte authored May 13, 2024
1 parent cc79576 commit bbb83dc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/publish-rc.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
name: Colour

on:
pull_request:
types:
- labeled
paths:
- '**'
push:
branches:
- changeset-release/main
paths-ignore:
- "package.json"
- "package-lock.json"
- ".changeset/**"
- "CHANGELOG.md"

jobs:
publish-rc:
name: Publish RC
runs-on: ubuntu-latest
if: github.event.label.name == 'Release Candidate'
permissions:
contents: write
id-token: write
Expand Down Expand Up @@ -50,6 +52,8 @@ jobs:
run: |
npx changeset pre enter rc
npx changeset version
git add .
git commit -m "chore: release candidate"
npx changeset publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sardine/colour",
"version": "2.0.2",
"version": "2.1.0-rc.0",
"description": "It does things to colours",
"type": "module",
"module": "./dist/index.mjs",
Expand Down

0 comments on commit bbb83dc

Please sign in to comment.