refactor: Add redirect for publishing action

The publishing action assumes that main in package.json points to the
entrypoint of the action. Since v1.2.0, however, that is no longer the
case. Rather than try a new system (or dive deep into the internals of
npm and what every directive means), we'll trick the action into uploading
the correct script by modifying the package.json file right before upload.
Add that hack.
This commit is contained in:
Thomas A. Christensen II 2023-05-23 16:06:28 -05:00
parent 56d7f33dac
commit 519edf8749
Signed by: millironx
GPG key ID: 09335146883990B9

View file

@ -16,6 +16,7 @@ jobs:
- run: npm ci
- run: npm run build
- run: npm run package
- run: sed -i 's%lib/src/main.js%dist/index.js%' package.json
- uses: JasonEtco/build-and-tag-action@v1
env:
GITHUB_TOKEN: ${{ github.token }}