chore(deps): upgrade yarn (#430)

* chore(deps): upgrade yarn

* chore(ci): enable corepack
This commit is contained in:
2025-11-27 16:24:59 +02:00
committed by GitHub
parent e6e3327e3b
commit 383a494113
7 changed files with 8284 additions and 6344 deletions

View File

@@ -24,9 +24,9 @@ jobs:
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0 uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with: with:
always-auth: true always-auth: true
node-version-file: '.nvmrc' node-version-file: ".nvmrc"
registry-url: 'https://registry.npmjs.org' registry-url: "https://registry.npmjs.org"
scope: '@ivuorinen' scope: "@ivuorinen"
- name: Cache Node Modules - name: Cache Node Modules
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
@@ -35,6 +35,11 @@ jobs:
path: node_modules path: node_modules
key: node-modules-${{ hashFiles('**/yarn.lock') }} key: node-modules-${{ hashFiles('**/yarn.lock') }}
- name: Enable corepack
id: corepack
shell: bash
run: corepack enable
- name: Install Dependencies - name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true' if: steps.cache.outputs.cache-hit != 'true'
run: yarn install run: yarn install

View File

@@ -30,11 +30,10 @@ jobs:
needs: needs:
- Linter - Linter
permissions: permissions:
statuses: write contents: write # to be able to publish a GitHub release
contents: write issues: write # to be able to comment on released issues
packages: write pull-requests: write # to be able to comment on released pull requests
issues: write id-token: write # to enable use of OIDC for trusted publishing and npm provenance
pull-requests: write
steps: steps:
- name: Checkout - name: Checkout
@@ -45,26 +44,18 @@ jobs:
- name: Setup Node.js Environment - name: Setup Node.js Environment
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0 uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with: with:
always-auth: true
node-version-file: ".nvmrc" node-version-file: ".nvmrc"
registry-url: "https://registry.npmjs.org" registry-url: "https://registry.npmjs.org"
scope: "@ivuorinen" scope: "@ivuorinen"
- name: Cache Node Modules - name: Install dependencies
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 run: yarn
id: cache
with:
path: node_modules
key: node-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install Dependencies - name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
shell: bash run: yarn npm audit --environment production
if: steps.cache.outputs.cache-hit != 'true'
run: yarn install
- name: Release - name: Release
shell: bash
env: env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn run semantic-release run: yarn semantic-release

2
.gitignore vendored
View File

@@ -13,3 +13,5 @@ packages/**/.*.config.*
!packages/prettier-config/.prettierrc.json !packages/prettier-config/.prettierrc.json
!packages/release-config/.releaserc.json !packages/release-config/.releaserc.json
!packages/stylelint-config/.stylelintrc.json !packages/stylelint-config/.stylelintrc.json
.yarn
CLAUDE.md

45
.yarnclean Normal file
View File

@@ -0,0 +1,45 @@
# test directories
__tests__
test
tests
powered-test
# asset directories
docs
doc
website
images
assets
# examples
example
examples
# code coverage directories
coverage
.nyc_output
# build scripts
Makefile
Gulpfile.js
Gruntfile.js
# configs
appveyor.yml
circle.yml
codeship-services.yml
codeship-steps.yml
wercker.yml
.tern-project
.gitattributes
.editorconfig
.*ignore
.eslintrc
.jshintrc
.flowconfig
.documentup.json
.yarn-metadata.json
.travis.yml
# misc
*.md

1
.yarnrc.yml Normal file
View File

@@ -0,0 +1 @@
nodeLinker: node-modules

View File

@@ -39,25 +39,26 @@
"url": "https://github.com/ivuorinen/base-configs.git" "url": "https://github.com/ivuorinen/base-configs.git"
}, },
"scripts": { "scripts": {
"eslint:fix": "eslint '**/*.{js,tsx,ts,mjs,cjs}' --fix", "commitlint": "./node_modules/.bin/commitlint --from HEAD~1 --to HEAD --verbose",
"eslint:report": "eslint '**/*.{js,tsx,ts,mjs,cjs}'", "eslint:fix": "./node_modules/.bin/eslint '**/*.{js,tsx,ts,mjs,cjs}' --fix",
"fix": "run-s prettier:fix eslint:fix markdownlint:fix", "eslint:report": "./node_modules/.bin/eslint '**/*.{js,tsx,ts,mjs,cjs}'",
"markdownlint:fix": "markdownlint '**/*.md' --fix", "fix": "./node_modules/.bin/run-s prettier:fix eslint:fix markdownlint:fix",
"markdownlint:report": "markdownlint '**/*.md'", "markdownlint:fix": "./node_modules/.bin/markdownlint '**/*.md' --fix",
"prettier:fix": "prettier '**/*.{js,tsx,ts,json,mjs,cjs}' '.*.{js,mjs,cjs,json}' --write", "markdownlint:report": "./node_modules/.bin/markdownlint '**/*.md'",
"prettier:report": "prettier '**/*.{js,tsx,ts,json,mjs,cjs}' '.*.{js,mjs,cjs,json}' --check" "prettier:fix": "./node_modules/.bin/prettier '**/*.{js,tsx,ts,json,mjs,cjs}' '.*.{js,mjs,cjs,json}' --write",
"prettier:report": "./node_modules/.bin/prettier '**/*.{js,tsx,ts,json,mjs,cjs}' '.*.{js,mjs,cjs,json}' --check"
}, },
"devDependencies": { "devDependencies": {
"@ivuorinen/browserslist-config": "^0.4.4", "@ivuorinen/browserslist-config": "^0.4.19",
"@ivuorinen/commitlint-config": "^0.3.8", "@ivuorinen/commitlint-config": "^0.3.12",
"@ivuorinen/eslint-config": "^0.5.12", "@ivuorinen/eslint-config": "^0.5.13",
"@ivuorinen/markdownlint-config": "^0.3.15", "@ivuorinen/markdownlint-config": "^0.3.16",
"@ivuorinen/prettier-config": "^0.3.8", "@ivuorinen/prettier-config": "^0.3.12",
"@ivuorinen/semantic-release-config": "^0.3.9", "@ivuorinen/semantic-release-config": "^0.3.18",
"@types/node": "*", "@types/node": "*",
"npm-run-all": "^4.1.5", "npm-run-all": "^4.1.5",
"simple-git-hooks": "^2.8.1", "simple-git-hooks": "^2.13.1",
"typescript": ">=4.2.0" "typescript": ">=4.2.0"
}, },
"packageManager": "yarn@1.22.22+sha256.c17d3797fb9a9115bf375e31bfd30058cac6bc9c3b8807a3d8cb2094794b51ca" "packageManager": "yarn@4.12.0"
} }

14511
yarn.lock

File diff suppressed because it is too large Load Diff