Revert "Switch to package-lock.json"

This reverts commit 0163b7281a.
This commit is contained in:
Koen Kanters 2022-04-03 08:49:03 +02:00
parent 8fd8df75be
commit cabef43421
4 changed files with 5 additions and 5 deletions

View File

@ -20,7 +20,7 @@ jobs:
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-${{ steps.nodeversion.outputs.version }}-${{ hashFiles('package-lock.json') }}
key: ${{ runner.os }}-${{ steps.nodeversion.outputs.version }}-${{ hashFiles('npm-shrinkwrap.json') }}
- name: Install dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm ci

View File

@ -15,9 +15,9 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16
- run: rm -rf package-lock.json
- run: rm -rf npm-shrinkwrap.json
- run: npx npm-check-updates -u
- run: npm install
- run: npm install && npm shrinkwrap --dev
- uses: peter-evans/create-pull-request@v3
with:
commit-message: Update dependencies

View File

@ -8,7 +8,7 @@ COPY package.json ./
# Dependencies and build
FROM base as dependencies_and_build
COPY package-lock.json tsconfig.json index.js ./
COPY npm-shrinkwrap.json tsconfig.json index.js ./
COPY lib ./lib
RUN apk add --no-cache --virtual .buildtools make gcc g++ python3 linux-headers git && \

View File

@ -18,7 +18,7 @@ echo "Creating backup of configuration..."
cp -R data data-backup
echo "Updating..."
git checkout HEAD -- package-lock.json
git checkout HEAD -- npm-shrinkwrap.json
git pull
echo "Installing dependencies..."