Skip to content

Commit 32ec412

Browse files
author
Justin Kimbrell
committed
chore: updated ci workflow
1 parent c0b3456 commit 32ec412

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/master.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Sample workflow for building and deploying a VitePress site to GitHub Pages
22
#
3-
name: Master
3+
name: Release
44

55
on:
66
# Runs on pushes targeting the `main` branch. Change this to `master` if you're
@@ -41,13 +41,22 @@ jobs:
4141
- name: Setup Pages
4242
uses: actions/configure-pages@v4
4343
- name: Install dependencies
44-
run: pnpm install
44+
run: pnpm install --frozen-lockfile
4545
- name: Build
4646
run: pnpm build
4747
- name: Upload artifact
4848
uses: actions/upload-pages-artifact@v3
4949
with:
5050
path: docs/.vitepress/dist
51+
- name: Create Release Pull Request or Publish
52+
id: changesets
53+
uses: changesets/action@v1
54+
with:
55+
commit: "ci: version bump from changesets"
56+
publish: pnpm changeset publish
57+
env:
58+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
5160

5261
# Deployment job
5362
deploy:

0 commit comments

Comments
 (0)