Skip to content

Commit

Permalink
fix(ignore): Switch to pnpm (#1215)
Browse files Browse the repository at this point in the history
* fix(ignore): Switch to pnpm

* u
  • Loading branch information
Koenkk authored Oct 13, 2024
1 parent deb42aa commit fdcea28
Show file tree
Hide file tree
Showing 7 changed files with 5,339 additions and 9,805 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,30 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
cache: npm
cache: pnpm
- name: Install dependencies
run: npm ci
run: pnpm i --frozen-lockfile
- name: Lint
run: |
npm run pretty:check
npm run eslint
pnpm run pretty:check
pnpm run eslint
- name: Build
run: npm run build
run: pnpm run build
- name: Test
run: npm run test-with-coverage -- --testTimeout=10000
run: pnpm run test-with-coverage -- --testTimeout=10000
- name: Publish new release
if: startsWith(github.ref, 'refs/tags/') && github.event_name == 'push'
run: |
npm publish
pnpm publish
PACKAGE=$(node -p "require('./package.json').name")
VERSION=$(node -p "require('./package.json').version")
until [ $(npm view $PACKAGE --json | jq --arg version "$VERSION" -r '.versions[] | select (. == $version)') ];
until [ $(pnpm view $PACKAGE --json | jq --arg version "$VERSION" -r '.versions[] | select (. == $version)') ];
do
echo "Waiting for publish to complete"
sleep 5s
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/typedoc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
- uses: actions/setup-node@v4
- name: Generate docs
run: |
npm ci
npm run typedoc
pnpm install --frozen-lockfile
pnpm run typedoc
- uses: actions/upload-pages-artifact@v3
with:
name: github-pages
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/update_deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@ jobs:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN }}
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npx npm-check-updates -u
- run: rm -f package-lock.json
- run: npm install
cache: pnpm
- run: pnpm up --latest
- uses: peter-evans/create-pull-request@v7
with:
commit-message: 'fix(ignore): update dependencies'
Expand Down
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
package-lock.json
pnpm-lock.yaml
CHANGELOG.md
Loading

0 comments on commit fdcea28

Please sign in to comment.