Skip to content

Commit

Permalink
ci: use pnpm as package and workspaces manager (#958)
Browse files Browse the repository at this point in the history
  • Loading branch information
dangreen committed Feb 6, 2023
1 parent bfe3bf1 commit ccf5310
Show file tree
Hide file tree
Showing 10 changed files with 3,588 additions and 26 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,21 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: [10, 12, 14]
node: [14, 16, 18]
steps:
- uses: actions/checkout@v2
- run: git config --global user.name 'CI'
- run: git config --global user.email 'dummy@example.org'
- uses: actions/setup-node@v2
- uses: pnpm/action-setup@v2
with:
version: 7
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
- run: node --version
- run: npm install --engine-strict
- run: npm test
- run: pnpm install
- run: pnpm test
- name: coverage
uses: codecov/codecov-action@v2
with:
Expand All @@ -32,11 +36,15 @@ jobs:
- uses: actions/checkout@v2
- run: git config --global user.name 'CI'
- run: git config --global user.email 'dummy@example.org'
- uses: actions/setup-node@v2
- uses: pnpm/action-setup@v2
with:
version: 7
- uses: actions/setup-node@v3
with:
node-version: 12
- run: npm install --engine-strict
- run: npm run test-windows
node-version: 14
cache: 'pnpm'
- run: pnpm install
- run: pnpm test-windows
- name: coverage
uses: codecov/codecov-action@v2
with:
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/release-submodules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,22 @@ jobs:
command: github-release
- uses: actions/checkout@v2
if: ${{ steps.tag-release.outputs.releases_created }}
- uses: pnpm/action-setup@v2
with:
version: 7
- uses: actions/setup-node@v1
if: ${{ steps.tag-release.outputs.releases_created }}
with:
node-version: 14
registry-url: 'https://external-dot-oss-automation.appspot.com/'
cache: 'pnpm'
- name: publish
if: ${{ steps.tag-release.outputs.releases_created }}
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
run: |
cd packages/${{ matrix.package }}
npm install
npm publish --access=public
pnpm install
pnpm publish --filter ${{ matrix.package }} --no-git-checks --access public
release-pr:
runs-on: ubuntu-latest
needs:
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,17 @@
"scripts": {
"lint": "eslint . --cache --cache-location ./node_modules/.cache/ --ignore-path .gitignore",
"fix": "eslint . --fix --cache --cache-location ./node_modules/.cache/ --ignore-path .gitignore",
"pretest": "npm run lint",
"pretest": "pnpm lint",
"test": "c8 mocha --timeout 30000 packages/*/test{,/*}.js",
"test-windows": "c8 mocha --timeout 60000 packages/*/test{,/*}.js",
"postinstall": "bash scripts/install.sh"
"test-windows": "c8 mocha --timeout 60000 packages/*/test{,/*}.js"
},
"version": "1.0.0",
"devDependencies": {
"better-than-before": "^1.0.0",
"c8": "^7.1.2",
"chai": "^4.2.0",
"concat-stream": "^2.0.0",
"conventional-changelog-core": "file://./packages/conventional-changelog-core",
"conventional-changelog-core": "^4.2.4",
"coveralls": "^3.0.2",
"eslint": "^7.0.0",
"eslint-config-standard": "^16.0.1",
Expand Down
1 change: 1 addition & 0 deletions packages/conventional-changelog-preset-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
},
"devDependencies": {
"conventional-changelog-angular": "^5.0.12",
"conventional-changelog-conventionalcommits": "^5.0.0",
"sinon": "^12.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/conventional-changelog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"conventional-changelog-angular": "^5.0.12",
"conventional-changelog-atom": "^2.0.8",
"conventional-changelog-codemirror": "^2.0.8",
"conventional-changelog-conventionalcommits": "^4.5.0",
"conventional-changelog-conventionalcommits": "^5.0.0",
"conventional-changelog-core": "^4.2.1",
"conventional-changelog-ember": "^2.0.9",
"conventional-changelog-eslint": "^3.0.9",
Expand Down
2 changes: 1 addition & 1 deletion packages/conventional-recommended-bump/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@
},
"bin": "cli.js",
"devDependencies": {
"conventional-changelog-conventionalcommits": "^4.5.0"
"conventional-changelog-conventionalcommits": "^5.0.0"
}
}
Loading

0 comments on commit ccf5310

Please sign in to comment.