Use npm ci

This commit is contained in:
WardPearce
2026-02-15 06:38:02 +13:00
parent 228fd2409c
commit 50e0cc467c
5 changed files with 15 additions and 11 deletions
+3 -3
View File
@@ -28,13 +28,13 @@ jobs:
node-version: latest
- name: Install modules
run: cd ../ && npm install
run: cd ../ && npm ci
- name: Build android nodejs packages
run: cd ../static/nodejsAndroid && npm install
run: cd ../static/nodejsAndroid && npm ci
- name: Build package
run: cd ../ && npm run build
run: cd ../ && npm run build && npm prune --omit=dev
- name: Sync package
run: cd ../ && npx cap sync
+3 -3
View File
@@ -42,10 +42,10 @@ jobs:
node-version: ${{ matrix.node-version }}
- name: Install modules
run: cd ./materialious && npm install
run: cd ./materialious && npm ci
- name: Build package
run: cd ./materialious && npm run build
run: cd ./materialious && npm run build && npm prune --omit=dev
- name: Sync electron package
run: cd ./materialious && npx cap sync @capacitor-community/electron
@@ -54,7 +54,7 @@ jobs:
run: cd ./materialious/electron && python patch_capacitor_plugin.py
- name: Install electron modules
run: cd ./materialious/electron && npm install
run: cd ./materialious/electron && npm ci
- name: Set up environment variables
run: echo "GH_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV
+5 -1
View File
@@ -28,7 +28,11 @@ RUN echo "VITE_DEFAULT_INVIDIOUS_INSTANCE=VITE_DEFAULT_INVIDIOUS_INSTANCE_PLACEH
echo "VITE_DEFAULT_RETURNYTDISLIKES_INSTANCE=VITE_DEFAULT_RETURNYTDISLIKES_INSTANCE_PLACEHOLDER" >> .env
# Install dependencies and build the project
RUN npm install && npm run build
RUN npm ci
RUN npm run build
RUN npm prune --omit=dev
FROM nginx:alpine
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "Materialious",
"version": "1.15.0",
"version": "1.15.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "Materialious",
"version": "1.15.0",
"version": "1.15.1",
"license": "MIT",
"dependencies": {
"@capacitor-community/electron": "^5.0.0",
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "materialious",
"version": "1.15.0",
"version": "1.15.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "materialious",
"version": "1.15.0",
"version": "1.15.1",
"hasInstallScript": true,
"dependencies": {
"@capacitor-community/electron": "^5.0.1",