setup-nextflow/.github/workflows/publish.yml

23 lines
627 B
YAML
Raw Normal View History

name: Publish
on:
release:
types: [published, edited]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4
2024-03-01 00:04:50 +00:00
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4
with:
node-version: 20
cache: "npm"
2022-11-13 22:05:17 +00:00
- run: npm ci
2022-11-13 22:50:40 +00:00
- run: npm run build
2022-11-13 22:11:09 +00:00
- run: npm run package
- run: sed -i 's%lib/src/main.js%dist/index.js%' package.json
2024-03-01 00:04:50 +00:00
- uses: JasonEtco/build-and-tag-action@dd5e4991048c325f6d85b4155e586fc211c644da # v2
env:
GITHUB_TOKEN: ${{ github.token }}