mirror of
https://github.com/MillironX/setup-nextflow.git
synced 2024-11-23 18:09:55 +00:00
Thomas A. Christensen II
519edf8749
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.
22 lines
498 B
YAML
22 lines
498 B
YAML
name: Publish
|
|
|
|
on:
|
|
release:
|
|
types: [published, edited]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 16
|
|
cache: "npm"
|
|
- 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 }}
|