build!: use pnpm

This commit is contained in:
Michael Kriese 2024-02-07 12:46:49 +01:00
parent 98460356b9
commit 0ff2f82a15
No known key found for this signature in database
GPG key ID: F8D7748549A5986A
14 changed files with 1285 additions and 2387 deletions

View file

@ -10,4 +10,6 @@ runs:
node-version-file: .node-version
# cache: 'npm'
- shell: bash
run: npm ci
run: corepack enable
- shell: bash
run: pnpm install --frozen-lockfile

View file

@ -32,8 +32,8 @@ jobs:
- uses: ./.forgejo/actions/setup
- uses: ./.forgejo/actions/setup-node
- run: npm run prettier
- run: npx markdownlint-cli .
- run: pnpm prettier
- run: pnpm markdownlint .
- run: make readme
- run: git diff --exit-code --name-only README.md
@ -190,4 +190,4 @@ jobs:
helm push tmp/forgejo-${GITHUB_REF_NAME#v}.tgz oci://code.forgejo.org/forgejo-contrib
- name: publish forgejo release
run: npm run forgejo:release
run: pnpm forgejo:release

2
.gitignore vendored
View file

@ -4,3 +4,5 @@ node_modules/
unittests/*/__snapshot__/
tmp/
tmpcharts/
.pnpm-store/

View file

@ -60,3 +60,6 @@ tools/
.yamllint
artifacthub*
renovate.json
pnpm-lock.yaml
.pnpm-store/

View file

@ -1,3 +1,3 @@
#!/bin/sh
npx lint-staged
pnpm lint-staged

View file

@ -1,5 +1,6 @@
{
"*.sh": "shellcheck",
".husky/*": "shellcheck",
"*": "prettier --ignore-unknown --write"
"!*.{sh,md}": "prettier --cache --ignore-unknown --write",
"*.md": ["markdownlint --fix", "prettier --cache --write"]
}

View file

@ -3,3 +3,5 @@ node_modules/
charts/
.helmignore
Chart.lock
.pnpm-store/

4
.npmrc
View file

@ -1 +1,5 @@
engine-strict=true
# pnpm run settings
# https://pnpm.io/cli/run
shell-emulator = true

View file

@ -1,5 +1,7 @@
Chart.lock
node_modules/
pnpm-lock.yaml
.pnpm-store/
# won't work
templates/**/*.yaml

View file

@ -1,11 +1,11 @@
.PHONY: prepare-environment
prepare-environment:
npm install
pnpm install
.PHONY: readme
readme: prepare-environment
npm run readme:parameters
npm run readme:lint
pnpm readme:parameters
pnpm readme:lint
.PHONY: unittests
unittests:

2371
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -3,17 +3,12 @@
"homepage": "https://codeberg.org/forgejo-contrib/forgejo-helm.git",
"license": "MIT",
"private": true,
"engineStrict": true,
"engines": {
"node": ">=16.0.0",
"npm": ">=8.0.0"
},
"scripts": {
"changelog": "node tools/changelog.mjs",
"forgejo:release": "node tools/forgejo-release.js",
"prepare": "husky",
"prettier": "prettier --check --ignore-unknown --cache \"**/*.*\"",
"prettier-fix": "prettier --write --ignore-unknown --cache \"**/*.*\"",
"prettier": "prettier --check --ignore-unknown --cache '**/*.*'",
"prettier-fix": "prettier --write --ignore-unknown --cache '**/*.*'",
"readme:lint": "markdownlint *.md -f",
"readme:parameters": "readme-generator -v values.yaml -r README.md"
},
@ -26,5 +21,10 @@
"lint-staged": "^15.2.0",
"markdownlint-cli": "^0.39.0",
"prettier": "^3.1.0"
},
"packageManager": "pnpm@8.15.1",
"engines": {
"node": "^18.12.0 || >=20.9.0",
"pnpm": "^8.0.0"
}
}

1247
pnpm-lock.yaml Normal file

File diff suppressed because it is too large Load diff

View file

@ -40,6 +40,12 @@
"matchUpdateTypes": ["minor", "patch"],
"automerge": true
},
{
"description": "Automerge node updates",
"matchManagers": ["nodenv"],
"matchUpdateTypes": ["minor", "patch"],
"automerge": true
},
{
"description": "Separate minor and patch updates for kindest",
"matchPackageNames": ["kindest/node"],