From 781475ca6b1087c1b92e0626698a4a84ad1008cf Mon Sep 17 00:00:00 2001 From: Myriad-Dreamin Date: Mon, 30 Dec 2024 14:54:45 +0800 Subject: [PATCH] fix: not uploaded files --- .github/workflows/release-node.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/release-node.yaml b/.github/workflows/release-node.yaml index cba5b3dc..190f9f32 100644 --- a/.github/workflows/release-node.yaml +++ b/.github/workflows/release-node.yaml @@ -411,9 +411,24 @@ jobs: path: packages/typst.node/artifacts - name: Move artifacts run: yarn artifacts + - name: Move transpiled files + run: | + cp artifacts/bindings-x86_64-unknown-linux-gnu/index.js index.js + cp artifacts/bindings-x86_64-unknown-linux-gnu/index.d.ts index.d.ts + cp artifacts/bindings-x86_64-unknown-linux-gnu/index-napi.js index-napi.js + cp artifacts/bindings-x86_64-unknown-linux-gnu/index-napi.d.ts index-napi.d.ts - name: List packages run: ls -R ./npm shell: bash + - name: NPM Pack + run: | + npm pack > package-name + mv `cat package-name` myriaddreamin-typst-ts-node-compiler.tar.gz + - name: Upload packed package + uses: actions/upload-artifact@v4 + with: + name: myriaddreamin-typst-ts-node-compiler + path: myriaddreamin-typst-ts-node-compiler.tar.gz - name: Publish run: | echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc