Skip to content

Commit

Permalink
chore: update yaml to v2.7.0 (#1071)
Browse files Browse the repository at this point in the history
* chore: update yaml to v2.7.0

* ci: enable npm cache
  • Loading branch information
antongolub authored Jan 8, 2025
1 parent 4424de7 commit 302e2f7
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/dev-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'npm'
- run: npm ci
- run: npm test
env:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'npm'
- run: npm ci
- run: npm test
env:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 22.x
cache: 'npm'

- run: npm ci
- run: |
Expand Down Expand Up @@ -48,6 +49,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 22.x
cache: 'npm'

- uses: actions/download-artifact@v4
with:
Expand Down Expand Up @@ -84,6 +86,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 22.x
cache: 'npm'

- uses: actions/download-artifact@v4
with:
Expand All @@ -109,6 +112,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 16.x
cache: 'npm'

- uses: actions/download-artifact@v4
with:
Expand Down Expand Up @@ -176,6 +180,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- uses: actions/download-artifact@v4
with:
name: build
Expand All @@ -201,6 +206,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 22.x
cache: 'npm'
- name: Install deps
run: npm ci
- name: Install TypeScript ${{ matrix.ts }}
Expand Down
6 changes: 3 additions & 3 deletions .size-limit.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "zx/index",
"path": "build/*.{js,cjs}",
"limit": "808 kB",
"limit": "809 kB",
"brotli": false,
"gzip": false
},
Expand All @@ -23,14 +23,14 @@
{
"name": "vendor",
"path": "build/vendor-*",
"limit": "763 kB",
"limit": "765 kB",
"brotli": false,
"gzip": false
},
{
"name": "all",
"path": "build/*",
"limit": "846 kB",
"limit": "847 kB",
"brotli": false,
"gzip": false
}
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
"typescript": "^5.7.2",
"vitepress": "^1.5.0",
"which": "^5.0.0",
"yaml": "~2.5.1",
"yaml": "~2.7.0",
"zurk": "^0.10.0"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export async function main() {
await scriptFromHttp(firstArg, argv.ext)
return
}
const filepath = firstArg.startsWith('file://')
const filepath = firstArg.startsWith('file:')
? url.fileURLToPath(firstArg)
: path.resolve(firstArg)
await importPath(filepath)
Expand Down

0 comments on commit 302e2f7

Please sign in to comment.