Skip to content

Commit 93e29d3

Browse files
author
Justin Kimbrell
committed
ci: updated beta workflow
1 parent ef8e673 commit 93e29d3

1 file changed

Lines changed: 16 additions & 28 deletions

File tree

.github/workflows/beta.yaml

Lines changed: 16 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -48,39 +48,14 @@ jobs:
4848
uses: actions/upload-pages-artifact@v3
4949
with:
5050
path: docs/.vitepress/dist
51-
52-
# Deployment job
53-
deploy:
54-
environment:
55-
name: github-pages
56-
url: ${{ steps.deployment.outputs.page_url }}
57-
needs: build
58-
runs-on: ubuntu-latest
59-
name: Deploy
60-
steps:
61-
- name: Deploy to GitHub Pages
62-
id: deployment
63-
uses: actions/deploy-pages@v4
64-
65-
publish:
66-
needs: build
67-
runs-on: ubuntu-latest
68-
name: Publish
69-
steps:
7051
- name: Enter Prerelease Mode
7152
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
53+
pnpm changeset pre enter beta
7954
8055
# Check if pre.json was created/modified
8156
if [ -f .changeset/pre.json ]; then
8257
git add .changeset/pre.json
83-
git commit -m "Enter prerelease mode for ${{ github.ref_name }}" || echo "No changes to commit"
58+
git commit -m "ci: enter prerelease mode for ${{ github.ref_name }}" || echo "No changes to commit"
8459
fi
8560
- name: Create Release Pull Request or Publish
8661
id: changesets
@@ -89,4 +64,17 @@ jobs:
8964
publish: pnpm changeset publish
9065
# env:
9166
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
92-
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
67+
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
68+
69+
# Deployment job
70+
deploy:
71+
environment:
72+
name: github-pages
73+
url: ${{ steps.deployment.outputs.page_url }}
74+
needs: build
75+
runs-on: ubuntu-latest
76+
name: Deploy
77+
steps:
78+
- name: Deploy to GitHub Pages
79+
id: deployment
80+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)