diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f7c19cf..486fded 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -34,4 +34,4 @@ jobs: - name: Check out source code uses: actions/checkout@v1 - run: npm install - - run: npm audit + - run: npm audit --audit-level=moderate diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3c845ed..03e739d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,3 +23,10 @@ jobs: run: | cl.exe hello.c hello.exe + audit: + name: npm audit + runs-on: windows-latest + steps: + - name: Check out source code + uses: actions/checkout@v1 + - run: npm audit --audit-level=moderate diff --git a/index.js b/index.js index 9f780d2..9c08809 100644 --- a/index.js +++ b/index.js @@ -14,6 +14,7 @@ const InterestingVariables = [ 'LIBPATH', 'Path', 'Platform', + 'VisualStudioVersion', /^VCTools/, /^VSCMD_/, /^WindowsSDK/i, diff --git a/package-lock.json b/package-lock.json index 4826a1f..62fc4c7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "msvc-dev-cmd", - "version": "1.0.0", + "version": "1.1.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -30,9 +30,9 @@ } }, "acorn": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.1.0.tgz", - "integrity": "sha512-kL5CuoXA/dgxlBbVrflsflzQ3PAas7RYZB52NOm/6839iVYJgKMJ3cQJD+t2i5+qFa8h3MDpEOJiS64E8JLnSQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.1.1.tgz", + "integrity": "sha512-add7dgA5ppRPxCFJoAGfMDi7PIBXq1RtGo7BhbLaxwrXPOmw8gq48Y9ozT01hUKy9byMjlR20EJhu5zlkErEkg==", "dev": true }, "acorn-jsx": { diff --git a/package.json b/package.json index dceb857..1af9a08 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "msvc-dev-cmd", - "version": "1.0.1", + "version": "1.1.0", "description": "GitHub Action to setup Developer Command Prompt for Microsoft Visual C++", "main": "index.js", "scripts": {