Skip to content

Commit 2874081

Browse files
author
Scott Kurtzeborn
committed
Add package-lock.json for reproducible builds
- Remove package-lock.json from .gitignore - Update all CI workflows to use npm ci - Commit lock file for all workspaces
1 parent e62ed10 commit 2874081

File tree

7 files changed

+8949
-7
lines changed

7 files changed

+8949
-7
lines changed

.github/workflows/deploy-functions.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
run: |
2525
# Delete root package.json temporarily to break workspace link
2626
rm -f ../package.json
27-
npm install
27+
npm ci
2828
2929
- name: Build TypeScript
3030
working-directory: ./functions
@@ -34,7 +34,7 @@ jobs:
3434
working-directory: ./functions
3535
run: |
3636
rm -rf node_modules
37-
npm install --omit=dev
37+
npm ci --omit=dev
3838
3939
- name: Deploy to Azure Functions
4040
uses: Azure/functions-action@v1

.github/workflows/deploy-landing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
- name: Install dependencies
2424
working-directory: ./landing
25-
run: npm install
25+
run: npm ci
2626

2727
- name: Build
2828
working-directory: ./landing

.github/workflows/deploy-web.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
- name: Install dependencies
2424
working-directory: ./web
25-
run: npm install
25+
run: npm ci
2626

2727
- name: Build
2828
working-directory: ./web

.github/workflows/deploy-worker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
- name: Install dependencies
2424
working-directory: ./workers
25-
run: npm install
25+
run: npm ci
2626

2727
- name: Deploy to Cloudflare Workers
2828
uses: cloudflare/wrangler-action@v3

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
node-version: '20'
1919

2020
- name: Install root dependencies
21-
run: npm install
21+
run: npm ci
2222

2323
- name: Run linter
2424
run: npm run lint

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Dependencies
22
node_modules/
3-
package-lock.json
43

54
# Environment variables
65
.env

0 commit comments

Comments
 (0)