Skip to content

Commit

Permalink
Switch to pnpm and update ws
Browse files Browse the repository at this point in the history
  • Loading branch information
felixbrucker committed Dec 12, 2023
1 parent 9db939a commit 62ed0ed
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 58 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,35 @@ jobs:

runs-on: ${{ matrix.os }}
steps:
- name: Checkout the repo
uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: latest
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Use current yarn
run: yarn set version stable
- name: yarn install
run: yarn install
cache: 'pnpm'
- name: pnpm install
run: pnpm install

publish-release:
name: Publish release
needs: build
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: latest
- name: Set up Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'
- name: Publish to npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
run: npm publish --access public
run: pnpm publish --access public
2 changes: 0 additions & 2 deletions .yarnrc.yml

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "GPL-3.0",
"dependencies": {
"json-bigint": "^1.0.0",
"ws": "^8.14.2"
"ws": "^8.15.0"
},
"main": "index.js",
"engines": {
Expand Down
38 changes: 38 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 0 additions & 46 deletions yarn.lock

This file was deleted.

0 comments on commit 62ed0ed

Please sign in to comment.