File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 11# Sample workflow for building and deploying a VitePress site to GitHub Pages
22#
3- name : Master
3+ name : Release
44
55on :
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 :
You can’t perform that action at this time.
0 commit comments