mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-24 03:39:01 +08:00
add changeset workflow
This commit is contained in:
parent
63f33020ab
commit
d2c9bf9888
38
.github/workflows/changesets-mode.yml
vendored
38
.github/workflows/changesets-mode.yml
vendored
@ -0,0 +1,38 @@
|
|||||||
|
name: Manage Changesets Mode
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- develop
|
||||||
|
- next
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
manage-pre-mode:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
# Checkout the repository
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
# Setup Node.js
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
|
||||||
|
# Install dependencies
|
||||||
|
- run: npm install
|
||||||
|
|
||||||
|
# Run the script
|
||||||
|
- name: Run pre mode script
|
||||||
|
id: pre-mode
|
||||||
|
run: |
|
||||||
|
BRANCH=$(echo "${{ github.ref }}" | sed 's|refs/heads/||')
|
||||||
|
./scripts/manage-pre-mode.sh "$BRANCH"
|
||||||
|
|
||||||
|
# Commit if required
|
||||||
|
- name: Commit changes
|
||||||
|
if: env.needs_commit == 'true'
|
||||||
|
run: |
|
||||||
|
git config user.name "GitHub Actions"
|
||||||
|
git config user.email "actions@github.com"
|
||||||
|
git add .changeset/pre.json
|
||||||
|
git commit -m "Update Changesets pre-release mode"
|
||||||
|
git push
|
Loading…
Reference in New Issue
Block a user