Skip to content

Commit

Permalink
fix: dist file
Browse files Browse the repository at this point in the history
  • Loading branch information
Yukaii committed Apr 29, 2023
1 parent 9292fd9 commit 17a3d80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/actions/pkg-action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ runs:
run: |
echo "::group::Setting outputs"
if [ "${{ steps.pkg-action-internal.outputs.target-os }}" == "win" ]; then
echo "file=dist/$(node -p "require('./package.json').name").exe" >> $GITHUB_OUTPUT
echo "file=dist/hackmd-cli.exe" >> $GITHUB_OUTPUT
else
echo "file=dist/$(node -p "require('./package.json').name")" >> $GITHUB_OUTPUT
echo "file=dist/hackmd-cli" >> $GITHUB_OUTPUT
fi
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
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@
},
"types": "dist/index.d.ts",
"pkg": {
"scripts": "./lib/**/*.js",
"outputPath": "exec"
"scripts": "./lib/**/*.js"
}
}

0 comments on commit 17a3d80

Please sign in to comment.