fix: Fix NPM binary publication (#1371)

The default .npmignore would disallow bin/, which contains binaries for
our NPM release. Every release before v3.0.3 was missing .npmignore, and
therefore had no binaries. These were unusable in NPM, and have been
marked as deprecated because of it.

Closes #1369
This commit is contained in:
Joey Parrish 2024-03-12 13:09:56 -07:00 committed by GitHub
parent d83c7b1d45
commit 4cb6536060
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 1 deletions

View File

@ -44,7 +44,6 @@ jobs:
uses: actions/checkout@v4
with:
ref: ${{ inputs.tag }}
submodules: recursive
- uses: actions/setup-node@v4
with:

8
npm/.npmignore Normal file
View File

@ -0,0 +1,8 @@
# This file is required for us, even if empty.
#
# The default .npmignore would disallow bin/, which contains binaries for our
# NPM release. Every release before v3.0.3 was missing .npmignore, and
# therefore had no binaries. These were unusable in NPM, and have been marked
# as deprecated because of it.
#
# See also https://github.com/shaka-project/shaka-packager/issues/1369

View File

@ -14,6 +14,7 @@ var commandNames = {
},
darwin: {
'x64': 'packager-osx-x64',
'arm64': 'packager-osx-arm64',
},
win32: {
'x64': 'packager-win-x64.exe',