mirror of
https://github.com/MillironX/setup-nextflow.git
synced 2024-12-22 12:58:17 +00:00
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:
parent
56d7f33dac
commit
519edf8749
1 changed files with 1 additions and 0 deletions
1
.github/workflows/publish.yml
vendored
1
.github/workflows/publish.yml
vendored
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue