fix private package installation
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Enrico Bühler 2023-06-27 00:33:35 +02:00
parent 1d2f617a4e
commit 95087124b5
3 changed files with 12 additions and 0 deletions

View File

@ -32,8 +32,12 @@ jobs:
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
- name: setup .npmrc
run: mv .npmrc.githubactions .npmrc
- name: install frontend dependencies - name: install frontend dependencies
run: yarn install # change this to npm or pnpm depending on which one you use run: yarn install # change this to npm or pnpm depending on which one you use
env:
UNOM_PACKAGES_TOKEN: ${{ secrets.UNOM_PACKAGES_TOKEN }}
- uses: tauri-apps/tauri-action@v0 - uses: tauri-apps/tauri-action@v0
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -27,8 +27,12 @@ jobs:
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
- name: setup .npmrc
run: mv .npmrc.githubactions .npmrc
- name: install frontend dependencies - name: install frontend dependencies
run: yarn install # change this to npm or pnpm depending on which one you use run: yarn install # change this to npm or pnpm depending on which one you use
env:
UNOM_PACKAGES_TOKEN: ${{ secrets.UNOM_PACKAGES_TOKEN }}
- uses: tauri-apps/tauri-action@v0 - uses: tauri-apps/tauri-action@v0
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

4
app/.npmrc.githubactions Normal file
View File

@ -0,0 +1,4 @@
//packages.unom.io/:_authToken=${UNOM_PACKAGES_TOKEN}
registry=https://registry.npmjs.org/
@tempblade:registry=https://packages.unom.io
@unom:registry=https://packages.unom.io