Skip to content

Commit

Permalink
feat!: bump npm from 9 to 10 (#834)
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous committed Dec 19, 2023
1 parent 64f473e commit 09aebbb
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
permissions:
contents: write
env:
MAJOR_VERSION_TAG: v5
MAJOR_VERSION_TAG: v6
steps:
- uses: actions/checkout@v4
with:
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@ on:
pull_request:
branches: ["**"]

env:
# HACK: Dependabot uses Node.js 16.20.1 and npm 8.19.4, so `engine-strict=true` in `.npmrc` fails Dependabot.
# See https://github.com/ybiquitous/npm-audit-fix-action/network/updates/689567062
# TODO: Temporarily turn off to work around the CI failure.
# See https://github.com/ybiquitous/npm-audit-fix-action/actions/runs/6306636027/job/17122073778#step:3:66
npm_config_engine_strict: false # should be true

jobs:
unit:
runs-on: ubuntu-latest
Expand All @@ -24,7 +17,7 @@ jobs:
with:
node-version-file: .node-version
cache: npm
- run: npm install --global npm@9
- run: npm install --global npm@"$(npm pkg get 'engines.npm' | jq -r .)" && npm -v
- run: npm ci
- run: git diff --exit-code # check dist/
- run: npm test --ignore-scripts
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
pull-requests: write
steps:
- uses: actions/checkout@v3
- uses: ybiquitous/npm-audit-fix-action@v5
- uses: ybiquitous/npm-audit-fix-action@v6
```
### Inputs
Expand Down
2 changes: 1 addition & 1 deletion dist/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -24743,7 +24743,7 @@ function buildCommitBody({ updated, added, removed }) {
// lib/constants.js
var PACKAGE_NAME = "ybiquitous/npm-audit-fix-action";
var PACKAGE_URL = "https://github.com/ybiquitous/npm-audit-fix-action";
var NPM_VERSION = "9";
var NPM_VERSION = "10";

// lib/buildPullRequestBody.js
var EMPTY = "-";
Expand Down
2 changes: 1 addition & 1 deletion lib/constants.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const PACKAGE_NAME = "ybiquitous/npm-audit-fix-action";
export const PACKAGE_URL = "https://github.com/ybiquitous/npm-audit-fix-action";
export const NPM_VERSION = "9";
export const NPM_VERSION = "10";
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"repository": "ybiquitous/npm-audit-fix-action",
"engines": {
"node": "20",
"npm": "9"
"npm": "10"
},
"type": "module",
"main": "lib/index.js",
Expand Down

0 comments on commit 09aebbb

Please sign in to comment.