Skip to content

Commit

Permalink
ci: use pnpm (#493)
Browse files Browse the repository at this point in the history
* ci: use pnpm

* test: update snaphost
  • Loading branch information
Kikobeats authored Jan 29, 2022
1 parent b28541f commit ad9351e
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 13 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: lts/*
- name: Install
run: npm install --no-package-lock
- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: latest
run_install: true
- name: Test
run: npm test
env:
Expand Down
5 changes: 3 additions & 2 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
unsafe-perm=true
enable-pre-post-scripts=true
save-prefix=~
shrinkwrap=false
save=false
shrinkwrap=false
unsafe-perm=true
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,19 +126,20 @@
},
"scripts": {
"build": "gulp build",
"clean": "lerna clean --yes && rm -rf node_modules",
"contributors": "(lerna exec finepack --parallel && git-authors-cli && finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true",
"clean": "pnpm --recursive --parallel exec -- rm -rf node_modules",
"contributors": "npm run contributors:add && npm run contributors:commit",
"contributors:add": "pnpm --recursive --parallel exec -- finepack",
"contributors:commit": "(git-authors-cli && finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true",
"coverage": "c8 report --reporter=text-lcov > coverage/lcov.info",
"dev": "concurrently \"gulp\" \"npm run dev:server\"",
"dev:server": "browser-sync start --server --files \"index.html, README.md, static/**/*.(css|js)\"",
"install": "lerna bootstrap --no-ci --force-local",
"lint": "standard-markdown README.md && standard",
"prerelease": "npm run contributors",
"pretest": "npm run lint",
"release": "lerna publish --yes --sort --conventional-commits -m \"chore(release): %s\" --create-release github",
"test": "c8 lerna exec npm run test",
"update": "lerna exec ncu -- --upgrade && ncu -- --upgrade",
"update:check": "lerna exec ncu -- --errorLevel 2 -x iso-639-3 && ncu -- --errorLevel 2"
"update": "pnpm --recursive --parallel exec -- ncu -- --upgrade",
"update:check": "pnpm --recursive --parallel exec -- ncu -- --errorLevel 2"
},
"private": true,
"license": "MIT",
Expand Down
8 changes: 4 additions & 4 deletions packages/metascraper-spotify/__snapshots__/index.js.snap-shot
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
exports['2af78bfdad666ee6542dc33e30916a7a0d83b88ec8aa1d97e5acc0a8023e3519 1'] = {
"audio": "string",
"audio": "null",
"author": "string",
"date": "string",
"description": "null",
Expand Down Expand Up @@ -59,7 +59,7 @@ exports['2af78bfdad666ee6542dc33e30916a7a0d83b88ec8aa1d97e5acc0a8023e3519 5'] =
}

exports['2af78bfdad666ee6542dc33e30916a7a0d83b88ec8aa1d97e5acc0a8023e3519 6'] = {
"audio": "string",
"audio": "null",
"author": "string",
"date": "string",
"description": "null",
Expand Down Expand Up @@ -155,7 +155,7 @@ exports['2af78bfdad666ee6542dc33e30916a7a0d83b88ec8aa1d97e5acc0a8023e3519 13'] =
}

exports['2af78bfdad666ee6542dc33e30916a7a0d83b88ec8aa1d97e5acc0a8023e3519 14'] = {
"audio": "string",
"audio": "null",
"author": "string",
"date": "string",
"description": "null",
Expand Down Expand Up @@ -203,7 +203,7 @@ exports['2af78bfdad666ee6542dc33e30916a7a0d83b88ec8aa1d97e5acc0a8023e3519 17'] =
}

exports['2af78bfdad666ee6542dc33e30916a7a0d83b88ec8aa1d97e5acc0a8023e3519 18'] = {
"audio": "string",
"audio": "null",
"author": "string",
"date": "string",
"description": "null",
Expand Down
2 changes: 2 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
packages:
- 'packages/*'

0 comments on commit ad9351e

Please sign in to comment.