Skip to content

Commit

Permalink
🛠️ CHORE: Replace yarn by pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
xenokratos committed Jul 20, 2024
1 parent ffb8875 commit 02f7cbe
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,24 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [13.x]
node-version: [20.x]
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
- name: Install pnpm
user: pnpm/action-setup@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/
- name: Install dependecies
run: |
yarn
pnpm i
- name: Run build process
run: |
yarn build
pnpm build
# - name: Publish
# run: |
# npm publish
Expand Down
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ notifications:
on_success: never
on_failure: always
install:
- yarn
- [email protected]
script:
- yarn build
- pnpm build
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"scripts": {
"clear": "rm -rf build src/katex-script.* src/katex-style.*",
"compile": "node scripts/prebuild.js",
"build": "yarn clear && yarn compile && tsc",
"release": "yarn build && npm version minor && npm publish",
"build": "pnpm clear && pnpm compile && tsc",
"release": "pnpm build && npm version minor && npm publish",
"prepare": "npm run build"
},
"repository": {
Expand Down

0 comments on commit 02f7cbe

Please sign in to comment.