Skip to content

Commit 3b3de4f

Browse files
committed
chore: postinstall for dependabot template-oss PR
1 parent 651b421 commit 3b3de4f

File tree

3 files changed

+5
-51
lines changed

3 files changed

+5
-51
lines changed

.github/workflows/audit.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,7 @@ jobs:
3333
run: npm -v
3434
- name: Install Dependencies
3535
run: npm i --ignore-scripts --no-audit --no-fund --package-lock
36-
- name: Run Audit
37-
run: npm audit
36+
- name: Run Production Audit
37+
run: npm audit --omit=dev
38+
- name: Run Full Audit
39+
run: npm audit --audit-level=none

.github/workflows/ci.yml

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -14,54 +14,6 @@ on:
1414
- cron: "0 9 * * 1"
1515

1616
jobs:
17-
engines:
18-
name: Engines - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
19-
if: github.repository_owner == 'npm'
20-
strategy:
21-
fail-fast: false
22-
matrix:
23-
platform:
24-
- name: Linux
25-
os: ubuntu-latest
26-
shell: bash
27-
node-version:
28-
- 10.0.0
29-
runs-on: ${{ matrix.platform.os }}
30-
defaults:
31-
run:
32-
shell: ${{ matrix.platform.shell }}
33-
steps:
34-
- name: Checkout
35-
uses: actions/checkout@v3
36-
- name: Setup Git User
37-
run: |
38-
git config --global user.email "[email protected]"
39-
git config --global user.name "npm CLI robot"
40-
- name: Setup Node
41-
uses: actions/setup-node@v3
42-
with:
43-
node-version: ${{ matrix.node-version }}
44-
- name: Update Windows npm
45-
# node 12 and 14 ship with npm@6, which is known to fail when updating itself in windows
46-
if: matrix.platform.os == 'windows-latest' && (startsWith(matrix.node-version, '12.') || startsWith(matrix.node-version, '14.'))
47-
run: |
48-
curl -sO https://registry.npmjs.org/npm/-/npm-7.5.4.tgz
49-
tar xf npm-7.5.4.tgz
50-
cd package
51-
node lib/npm.js install --no-fund --no-audit -g ..\npm-7.5.4.tgz
52-
cd ..
53-
rmdir /s /q package
54-
- name: Install npm@7
55-
if: startsWith(matrix.node-version, '10.')
56-
run: npm i --prefer-online --no-fund --no-audit -g npm@7
57-
- name: Install npm@latest
58-
if: ${{ !startsWith(matrix.node-version, '10.') }}
59-
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
60-
- name: npm Version
61-
run: npm -v
62-
- name: Install Dependencies
63-
run: npm i --ignore-scripts --no-audit --no-fund --engines-strict
64-
6517
lint:
6618
name: Lint
6719
if: github.repository_owner == 'npm'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"author": "GitHub Inc.",
5454
"templateOSS": {
5555
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
56-
"version": "4.7.1",
56+
"version": "4.8.0",
5757
"engines": ">=10",
5858
"ciVersions": [
5959
"10.0.0",

0 commit comments

Comments
 (0)