Skip to content

Commit

Permalink
Updated pnpm install in actions file
Browse files Browse the repository at this point in the history
  • Loading branch information
ajmcquilkin committed Jun 30, 2023
1 parent 9179168 commit 1e31e41
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 16 deletions.
34 changes: 19 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'publish'
name: "publish"
on:
workflow_dispatch:

Expand All @@ -10,39 +10,43 @@ jobs:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-20.04, windows-latest]
node-version: [16]

runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- run: git submodule update --init
- name: setup node

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: 16
node-version: ${{ matrix.node-version }}
cache: "pnpm"

- name: install Rust stable
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable

- name: setup pnpm
uses: pnpm/action-setup@v2
with:
version: 7.1.7

- name: install dependencies (ubuntu only)
- name: Install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-20.04'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
- name: install frontend dependencies
run: pnpm install # change this to npm or pnpm depending on which one you use
- name: Install frontend dependencies
run: pnpm install

- uses: tauri-apps/tauri-action@v0
- name: Build Tauri application
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
releaseName: 'MNMC v__VERSION__'
releaseBody: 'See release assets to download this version and install.'
releaseName: "MNMC v__VERSION__"
releaseBody: "See release assets to download this version and install."
releaseDraft: true
prerelease: true
4 changes: 3 additions & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ listen("reboot", (event) => {
})
.catch(console.error);

createRoot(document.getElementById("root") as HTMLElement).render(
const container = document.getElementById("root");
const root = createRoot(container as HTMLElement);
root.render(
<React.StrictMode>
<BrowserRouter>
<Provider store={store}>
Expand Down

0 comments on commit 1e31e41

Please sign in to comment.