Skip to content

Commit

Permalink
Refactor GitHub Actions Workflow for Node and Rust Integration
Browse files Browse the repository at this point in the history
- Updated node-version-file syntax to use double quotes for consistency.
- Simplified push changes step by combining Git configuration and commands.
- Removed unnecessary steps for committing changes, making the workflow more streamlined.
- Minor formatting adjustments for better readability.
  • Loading branch information
takanotume24 committed Dec 4, 2024
1 parent 8564306 commit 12c42ed
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/publish-to-auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: setup node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
node-version-file: ".nvmrc"

- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
Expand Down Expand Up @@ -72,20 +72,13 @@ jobs:
- name: Update version number
run: ./script/update_version.sh $VERSION

- name: Set up Git
- name: Push changes
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Commit changes
run: |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "Automated commit from GitHub Actions"
- name: Push changes
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
git commit -m "Update version number from GitHub Actions"
git push
publish-tauri:
needs: update-version
Expand All @@ -111,7 +104,7 @@ jobs:
- name: setup node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
node-version-file: ".nvmrc"

- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
Expand All @@ -127,7 +120,7 @@ jobs:
- name: install frontend dependencies
run: npm install # change this to npm, pnpm or bun depending on which one you use.

- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 12c42ed

Please sign in to comment.