Skip to content

Commit

Permalink
add comment + install yarn first
Browse files Browse the repository at this point in the history
  • Loading branch information
folkvir committed May 3, 2024
1 parent f65fe87 commit e885253
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/npm_test_doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
# node-version: ['18', '19', '20', '21', '22', 'lts/*']
node-version: ['lts/*']
steps:
- name: Install yarn@berry first
run: npm install -g yarn@berry && yarn set version 4.2.1 && yarn --version
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
Expand All @@ -24,8 +26,6 @@ jobs:
with:
path: node_modules
key: ${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('yarn.lock') }}
- name: Install yarn@berry
run: npm install -g yarn@berry && yarn set version 4.2.1 && yarn --version
- name: Package install
if: steps.cache.outputs.cache-hit != 'true'
run: yarn install
Expand Down
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
nodeLinker: node-modules
enableInlineHunks: true
supportedArchitectures:
# wasm32 is needed by @node-rs/xxhash-wasm32-wasi otherwise it is not installed
cpu:
- current
- wasm32
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "./dist/mjs/index.mjs",
"browser": "./dist/mjs/index.mjs",
"type": "module",
"os": [
"cpu": [
"!wasm32",
"wasm32"
],
Expand Down

0 comments on commit e885253

Please sign in to comment.