Skip to content

Commit

Permalink
refactor: Add redirect for publishing action
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
MillironX committed May 23, 2023
1 parent 56d7f33 commit 519edf8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 519edf8

Please sign in to comment.