Skip to content

Commit

Permalink
chore(workflows): fix ci release fail
Browse files Browse the repository at this point in the history
  • Loading branch information
onlyhom committed Apr 23, 2023
1 parent 191b25e commit d8c83d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ on:
push:
branches: ["master"]
paths:
- "src/**"
- "index.html"
- "vite.config.ts"
- "package.json"

env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
Expand All @@ -32,15 +30,12 @@ jobs:
- name: Build
run: pnpm run build

- name: Update package version
run: npm --no-git-tag-version version patch

- name: Get package-version
uses: nyaa8/package-version@v1

- uses: EndBug/add-and-commit@v9
with:
message: "chore: build dist"
message: "release: v${{ env.PACKAGE_VERSION }}"
committer_name: github-actions[bot]
committer_email: github-actions[bot]@users.noreply.github.com
push: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build dist and deploy
name: build and deploy gh pages
on:
workflow_dispatch:
push:
Expand Down

0 comments on commit d8c83d3

Please sign in to comment.