Skip to content

Commit

Permalink
chore(workflow): netlify pnpm support and renovate.json update (levai…
Browse files Browse the repository at this point in the history
…ntech#33)

<!--  Thanks for sending a pull request! -->

#### What this PR does / why we need it:

As per the title.
  • Loading branch information
fuxingloh authored Oct 31, 2022
1 parent 6fe2b36 commit 45aa546
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
},
"rangeStrategy": "bump",
"packageRules": [
{
"matchPackagePatterns": ["node", "@types/node", "npm", "pnpm", "yarn"],
"groupName": "engines",
"enabled": false
},
{
"matchPackagePatterns": ["eslint"],
"groupName": "eslint"
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3.5.1
with:
node-version: 18
node-version-file: '.nvmrc'
cache: pnpm

- run: pnpm install --frozen-lockfile
Expand All @@ -40,7 +40,7 @@ jobs:

- uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3.5.1
with:
node-version: 18
node-version-file: '.nvmrc'
cache: pnpm

- run: pnpm install --frozen-lockfile
Expand All @@ -62,7 +62,7 @@ jobs:

- uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3.5.1
with:
node-version: 18
node-version-file: '.nvmrc'
cache: pnpm

- run: pnpm install --frozen-lockfile
Expand All @@ -81,7 +81,7 @@ jobs:

- uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3.5.1
with:
node-version: 18
node-version-file: '.nvmrc'
cache: pnpm

- run: pnpm install --frozen-lockfile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

- uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3.5.1
with:
node-version: 18
node-version-file: '.nvmrc'
cache: pnpm

- run: pnpm install --frozen-lockfile
Expand Down
5 changes: 1 addition & 4 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[build.environment]
NPM_FLAGS="--version" # prevent Netlify npm install

[build]
publish = "packages/sticky-docs/.contented/.preview/out/"
command = "npm install --location=global pnpm && pnpm install --frozen-lockfile && turbo run generate --filter=sticky-docs --force"
command = "turbo run generate --filter=sticky-docs"
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"prettier": "@birthdayresearch/sticky-prettier",
"engines": {
"node": "^18.0.0 || ^16.16.0",
"pnpm": ">=7.9.0"
"node": "^18.0.0",
"pnpm": ">=7.13.0"
}
}

0 comments on commit 45aa546

Please sign in to comment.