chore: enhance pnpm installation logic in release workflow
- Updated the GitHub Actions release workflow to conditionally install frontend dependencies based on the presence of a pnpm-lock.yaml file, ensuring more flexible dependency management.
This commit is contained in:
1 parent
3a9bdcac2c
commit
2405ecb6de
1 file changed
+14
-1
@@ -64,7 +64,12 @@ jobs:
|
|||||||
sudo apt-get install -y libwebkit2gtk-4.1-dev libssl-dev libayatana-appindicator3-dev librsvg2-dev patchelf
|
sudo apt-get install -y libwebkit2gtk-4.1-dev libssl-dev libayatana-appindicator3-dev librsvg2-dev patchelf
|
||||||
|
|
||||||
- name: Install frontend dependencies
|
- name: Install frontend dependencies
|
||||||
run: pnpm install --frozen-lockfile
|
run: |
|
||||||
|
if [ -f pnpm-lock.yaml ]; then
|
||||||
|
pnpm install --frozen-lockfile
|
||||||
|
else
|
||||||
|
pnpm install
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Generate changelog
|
- name: Generate changelog
|
||||||
run: pnpm generate-changelog
|
run: pnpm generate-changelog
|
||||||
@@ -122,6 +127,14 @@ jobs:
|
|||||||
node-version: '20'
|
node-version: '20'
|
||||||
cache: 'pnpm'
|
cache: 'pnpm'
|
||||||
|
|
||||||
|
- name: Install frontend dependencies
|
||||||
|
run: |
|
||||||
|
if [ -f pnpm-lock.yaml ]; then
|
||||||
|
pnpm install --frozen-lockfile
|
||||||
|
else
|
||||||
|
pnpm install
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Get version
|
- name: Get version
|
||||||
id: get_version
|
id: get_version
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in new issue
Block a user