-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor GitHub Actions Workflow for Node and Rust Integration
- 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
1 parent
8564306
commit 12c42ed
Showing
1 changed file
with
7 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 }} | ||
|