Skip to content

Commit bd58518

Browse files
authored
chore(ci): prevent publishing invalid SRIs (#2042)
* chore(ci): prevent publishing invalid SRIs * chore: run npm ci in prebump release hook
1 parent c36ccc5 commit bd58518

File tree

5 files changed

+9736
-6
lines changed

5 files changed

+9736
-6
lines changed

.circleci/config.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- checkout
4040
- <<: *set_npm_auth
4141
- <<: *restore_dependency_cache_unix
42-
- run: npm install
42+
- run: npm ci
4343
- save_cache:
4444
key: v8-cache-unix-{{ checksum "package.json" }}
4545
paths:
@@ -51,7 +51,7 @@ jobs:
5151
- checkout
5252
- <<: *set_npm_auth
5353
- <<: *restore_dependency_cache_win
54-
- run: npm install
54+
- run: npm ci
5555
- save_cache:
5656
key: v8-cache-win-{{ checksum "package.json" }}
5757
paths:
@@ -158,6 +158,7 @@ jobs:
158158
- <<: *set_npm_auth
159159
- <<: *restore_dependency_cache_unix
160160
- run: npm run build
161+
- run: npm run sri-validate
161162
- run: npm publish
162163

163164
# Create a GitHub release.

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# defaults
22
node_modules
33
npm-shrinkwrap.json
4-
package-lock.json
4+
doc/examples/*/package-lock.json
55
.DS_Store
66
.vscode
77

.npmrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
package-lock=false
21
registry=https://registry.npmjs.org

0 commit comments

Comments
 (0)