File tree Expand file tree Collapse file tree 2 files changed +31
-2
lines changed
Expand file tree Collapse file tree 2 files changed +31
-2
lines changed Original file line number Diff line number Diff line change 1010 "fixed" : [],
1111 "linked" : [],
1212 "access" : " public" ,
13- "baseBranch" : " main " ,
13+ "baseBranch" : " master " ,
1414 "updateInternalDependencies" : " patch" ,
1515 "ignore" : []
1616}
Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments