Update to use auto release functionality

This commit is contained in:
Thomas A. Christensen II 2022-06-13 17:50:18 -05:00
parent 25b680eb4e
commit e5e3a7abe7
Signed by: millironx
GPG key ID: 139C07724802BC5D
3 changed files with 23 additions and 3 deletions

19
.github/workflows/publish.yml vendored Normal file
View file

@ -0,0 +1,19 @@
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 install && npm run build
- uses: JasonEtco/build-and-tag-action@v1
env:
GITHUB_TOKEN: ${{ github.token }}

View file

@ -16,7 +16,7 @@ inputs:
default: ${{ github.token }} default: ${{ github.token }}
runs: runs:
using: "node16" using: "node16"
main: "index.js" main: "dist/index.js"
branding: branding:
icon: "shuffle" icon: "shuffle"
color: "green" color: "green"

View file

@ -2,9 +2,10 @@
"name": "install-nextflow-action", "name": "install-nextflow-action",
"version": "1.0.0", "version": "1.0.0",
"description": "", "description": "",
"main": "index.js", "main": "dist/index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1",
"build": "ncc build index.js --license LICENSE"
}, },
"keywords": [], "keywords": [],
"author": "", "author": "",