Skip to content

Commit a0d5422

Browse files
committed
0.0.1
1 parent 734a1f7 commit a0d5422

File tree

25 files changed

+266
-260
lines changed

25 files changed

+266
-260
lines changed

.github/workflows/CI.yml

Lines changed: 32 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,17 @@ jobs:
121121
- name: Install dependencies
122122
run: yarn install
123123
- name: Build in docker
124-
uses: addnab/docker-run-action@v3
125124
if: ${{ matrix.settings.docker }}
126-
with:
127-
image: ${{ matrix.settings.docker }}
128-
options: "--user 0:0 -v ${{ github.workspace }}/.cargo-cache/git/db:/usr/local/cargo/git/db -v ${{ github.workspace }}/.cargo/registry/cache:/usr/local/cargo/registry/cache -v ${{ github.workspace }}/.cargo/registry/index:/usr/local/cargo/registry/index -v ${{ github.workspace }}:/build -w /build"
129-
run: ${{ matrix.settings.build }}
125+
run: |
126+
docker run --rm \
127+
--user 0:0 \
128+
-v ${{ github.workspace }}/.cargo-cache/git/db:/usr/local/cargo/git/db \
129+
-v ${{ github.workspace }}/.cargo/registry/cache:/usr/local/cargo/registry/cache \
130+
-v ${{ github.workspace }}/.cargo/registry/index:/usr/local/cargo/registry/index \
131+
-v ${{ github.workspace }}:/build \
132+
-w /build \
133+
${{ matrix.settings.docker }} \
134+
/bin/sh -c "${{ matrix.settings.build }}"
130135
- name: Build
131136
run: ${{ matrix.settings.build }}
132137
if: ${{ !matrix.settings.docker }}
@@ -267,14 +272,13 @@ jobs:
267272
platforms: arm64
268273
- run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
269274
- name: Setup and run tests
270-
uses: addnab/docker-run-action@v3
271-
with:
272-
image: node:${{ matrix.node }}-slim
273-
options: "--platform linux/arm64 -v ${{ github.workspace }}:/build -w /build"
274-
run: |
275-
set -e
276-
yarn test
277-
ls -la
275+
run: |
276+
docker run --rm \
277+
--platform linux/arm64 \
278+
-v ${{ github.workspace }}:/build \
279+
-w /build \
280+
node:${{ matrix.node }}-slim \
281+
/bin/sh -c "set -e && yarn test && ls -la"
278282
test-linux-aarch64-musl-binding:
279283
name: Test bindings on aarch64-unknown-linux-musl - node@${{ matrix.node }}
280284
needs:
@@ -301,13 +305,13 @@ jobs:
301305
platforms: arm64
302306
- run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
303307
- name: Setup and run tests
304-
uses: addnab/docker-run-action@v3
305-
with:
306-
image: node:lts-alpine
307-
options: "--platform linux/arm64 -v ${{ github.workspace }}:/build -w /build"
308-
run: |
309-
set -e
310-
yarn test
308+
run: |
309+
docker run --rm \
310+
--platform linux/arm64 \
311+
-v ${{ github.workspace }}:/build \
312+
-w /build \
313+
node:lts-alpine \
314+
/bin/sh -c "set -e && yarn test"
311315
universal-macOS:
312316
name: Build universal macOS binary
313317
needs:
@@ -326,14 +330,16 @@ jobs:
326330
uses: actions/download-artifact@v4
327331
with:
328332
name: bindings-x86_64-apple-darwin
329-
path: artifacts
333+
path: .
330334
- name: Download macOS arm64 artifact
331335
uses: actions/download-artifact@v4
332336
with:
333337
name: bindings-aarch64-apple-darwin
334-
path: artifacts
338+
path: .
335339
- name: Combine binaries
336-
run: yarn universal
340+
run: |
341+
ls -R .
342+
yarn universal
337343
- name: Upload artifact
338344
uses: actions/upload-artifact@v4
339345
with:
@@ -370,15 +376,15 @@ jobs:
370376
shell: bash
371377
- name: Publish
372378
run: |
373-
# npm config set provenance true
379+
npm config set provenance true
374380
if git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+$";
375381
then
376382
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
377-
npm publish --access public
383+
npm publish --access public --provenance
378384
elif git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+";
379385
then
380386
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
381-
npm publish --tag next --access public
387+
npm publish --tag next --access public --provenance
382388
else
383389
echo "Not a release, skipping publish"
384390
fi

.yarn/install-state.gz

-53 Bytes
Binary file not shown.

crates/domparser_napi/index.js

Lines changed: 53 additions & 53 deletions
Large diffs are not rendered by default.

index.js

Lines changed: 49 additions & 49 deletions
Large diffs are not rendered by default.

npm/darwin-arm64/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# `@domparser-rs/domparser-darwin-arm64`
1+
# `domparser-darwin-arm64`
22

3-
This is the **aarch64-apple-darwin** binary for `@domparser-rs/domparser`
3+
This is the **aarch64-apple-darwin** binary for `domparser`

npm/darwin-arm64/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "@domparser-rs/domparser-darwin-arm64",
3-
"version": "0.0.0",
2+
"name": "domparser-darwin-arm64",
3+
"version": "0.0.1",
44
"cpu": [
55
"arm64"
66
],
@@ -24,7 +24,7 @@
2424
"engines": {
2525
"node": ">= 10"
2626
},
27-
"repository": "https://github.com/utooland/domparser-rs",
27+
"repository": "https://github.com/utooland/domparser",
2828
"os": [
2929
"darwin"
3030
]

npm/darwin-universal/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# `@domparser-rs/domparser-darwin-universal`
1+
# `domparser-darwin-universal`
22

3-
This is the **universal-apple-darwin** binary for `@domparser-rs/domparser`
3+
This is the **universal-apple-darwin** binary for `domparser`

npm/darwin-universal/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "@domparser-rs/domparser-darwin-universal",
3-
"version": "0.0.0",
2+
"name": "domparser-darwin-universal",
3+
"version": "0.0.1",
44
"main": "domparser.darwin-universal.node",
55
"files": [
66
"domparser.darwin-universal.node"
@@ -21,7 +21,7 @@
2121
"engines": {
2222
"node": ">= 10"
2323
},
24-
"repository": "https://github.com/utooland/domparser-rs",
24+
"repository": "https://github.com/utooland/domparser",
2525
"os": [
2626
"darwin"
2727
]

npm/darwin-x64/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# `@domparser-rs/domparser-darwin-x64`
1+
# `domparser-darwin-x64`
22

3-
This is the **x86_64-apple-darwin** binary for `@domparser-rs/domparser`
3+
This is the **x86_64-apple-darwin** binary for `domparser`

npm/darwin-x64/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "@domparser-rs/domparser-darwin-x64",
3-
"version": "0.0.0",
2+
"name": "domparser-darwin-x64",
3+
"version": "0.0.1",
44
"cpu": [
55
"x64"
66
],
@@ -24,7 +24,7 @@
2424
"engines": {
2525
"node": ">= 10"
2626
},
27-
"repository": "https://github.com/utooland/domparser-rs",
27+
"repository": "https://github.com/utooland/domparser",
2828
"os": [
2929
"darwin"
3030
]

0 commit comments

Comments
 (0)