diff --git a/node/sign_node_package/action.yml b/node/sign_node_package/action.yml index c1dfb80..72d8bdb 100644 --- a/node/sign_node_package/action.yml +++ b/node/sign_node_package/action.yml @@ -55,23 +55,8 @@ runs: if: ${{ inputs.sign_native == 'true' }} shell: bash run: | - cat << EOF > script.js - const { readdirSync } = require('fs'); - const { join } = require('path'); - - const tarFiles = readdirSync(process.argv[2], { - withFileTypes: true, - recursive: true - }) - .filter(dirEnt => dirEnt.isFile()) - .map(({ name, parentPath }) => join(parentPath, name)) - .filter(file => file.includes('build-') && file.includes('.tar.gz')); - - process.stdout.write(tarFiles.join('\n')); - process.stdout.write('\n') - EOF - - FILENAMES=$(node ./script.js .) + # all prebuilds + FILENAMES=$(find build-* -type f -name '*.tar.gz' | tr '\n' ' ') FILENAMES="$FILENAMES ${{ env.package_file }}" echo "FILES_TO_SIGN=${FILENAMES}" >> "$GITHUB_ENV"