Skip to content

Commit 17a3d80

Browse files
committed
fix: dist file
1 parent 9292fd9 commit 17a3d80

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/actions/pkg-action/action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ runs:
107107
run: |
108108
echo "::group::Setting outputs"
109109
if [ "${{ steps.pkg-action-internal.outputs.target-os }}" == "win" ]; then
110-
echo "file=dist/$(node -p "require('./package.json').name").exe" >> $GITHUB_OUTPUT
110+
echo "file=dist/hackmd-cli.exe" >> $GITHUB_OUTPUT
111111
else
112-
echo "file=dist/$(node -p "require('./package.json').name")" >> $GITHUB_OUTPUT
112+
echo "file=dist/hackmd-cli" >> $GITHUB_OUTPUT
113113
fi
114114
115115
echo "artifact-key=${{ github.event.repository.name }}-${{ steps.pkg-action-internal.outputs.target-node }}-${{ steps.pkg-action-internal.outputs.target-os }}-${{ steps.pkg-action-internal.outputs.target-arch }}-${{ github.sha }}" >> $GITHUB_OUTPUT

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@
8080
},
8181
"types": "dist/index.d.ts",
8282
"pkg": {
83-
"scripts": "./lib/**/*.js",
84-
"outputPath": "exec"
83+
"scripts": "./lib/**/*.js"
8584
}
8685
}

0 commit comments

Comments
 (0)