Skip to content

Commit e4a3df2

Browse files
authored
build(dev): bump yarn to v4.11.0 (#213)
Includes some fixes to `bump_version.py` script about `yarn version` command args.
1 parent 5b0e211 commit e4a3df2

File tree

5 files changed

+335
-337
lines changed

5 files changed

+335
-337
lines changed

.github/workflows/bump_version.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,12 @@ def main():
111111
[
112112
"yarn",
113113
"version",
114-
"--new-version",
115114
Updater.new_version,
116-
"--no-git-tag-version",
117115
],
118116
cwd="bindings/node",
119117
check=True,
120118
)
121-
subprocess.run(["napi", "version"], cwd="bindings/node", check=True, shell=True)
122-
print("Updated version in bindings/node/**package.json")
119+
print("Updated version in bindings/node/package.json")
123120

124121
subprocess.run(
125122
[

.pre-commit-config.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@ repos:
33
rev: v6.0.0
44
hooks:
55
- id: trailing-whitespace
6-
exclude: cpp-linter/tests/.*\.(?:patch|diff)
6+
exclude: '^(?:cpp-linter/tests/.*\.(?:patch|diff))|(?:\.yarn/releases/yarn.*js)'
77
- id: end-of-file-fixer
88
exclude: bindings/node/.*package\.json
99
- id: check-docstring-first
1010
- id: check-added-large-files
11-
exclude: '.yarn/releases/yarn.*js'
11+
exclude: '^\.yarn/releases/yarn.*js'
1212
- id: check-yaml
1313
exclude: docs/mkdocs.yml
1414
- id: check-toml
1515
- id: mixed-line-ending
16+
exclude: '^\.yarn/releases/yarn.*js'
1617
args: ["--fix=lf"]
1718
- repo: https://github.com/astral-sh/ruff-pre-commit
1819
rev: v0.14.0

.yarn/releases/yarn-4.9.2.cjs renamed to .yarn/releases/yarn-4.11.0.cjs

Lines changed: 329 additions & 329 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ nodeLinker: node-modules
22

33
npmAuditRegistry: "https://registry.npmjs.org"
44

5-
yarnPath: .yarn/releases/yarn-4.9.2.cjs
5+
yarnPath: .yarn/releases/yarn-4.11.0.cjs

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@
2727
"workspaces": [
2828
"bindings/node"
2929
],
30-
"packageManager": "yarn@4.9.2"
30+
"packageManager": "yarn@4.11.0"
3131
}

0 commit comments

Comments
 (0)