Skip to content

Commit ef8e673

Browse files
author
Justin Kimbrell
committed
chore: more changeset testing
1 parent f4d85e4 commit ef8e673

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"fixed": [],
1111
"linked": [],
1212
"access": "public",
13-
"baseBranch": "main",
13+
"baseBranch": "master",
1414
"updateInternalDependencies": "patch",
1515
"ignore": []
1616
}

.github/workflows/beta.yaml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,33 @@ jobs:
6060
steps:
6161
- name: Deploy to GitHub Pages
6262
id: deployment
63-
uses: actions/deploy-pages@v4
63+
uses: actions/deploy-pages@v4
64+
65+
publish:
66+
needs: build
67+
runs-on: ubuntu-latest
68+
name: Publish
69+
steps:
70+
- name: Enter Prerelease Mode
71+
run: |
72+
if [ "${{ github.ref }}" = "refs/heads/beta" ]; then
73+
pnpm changeset pre enter beta
74+
elif [ "${{ github.ref }}" = "refs/heads/alpha" ]; then
75+
pnpm changeset pre enter alpha
76+
elif [ "${{ github.ref }}" = "refs/heads/rc" ]; then
77+
pnpm changeset pre enter rc
78+
fi
79+
80+
# Check if pre.json was created/modified
81+
if [ -f .changeset/pre.json ]; then
82+
git add .changeset/pre.json
83+
git commit -m "Enter prerelease mode for ${{ github.ref_name }}" || echo "No changes to commit"
84+
fi
85+
- name: Create Release Pull Request or Publish
86+
id: changesets
87+
uses: changesets/action@v1
88+
with:
89+
publish: pnpm changeset publish
90+
# env:
91+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
92+
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)