Skip to content

Release on tag

Release on tag #4

Workflow file for this run

name: 'Release on tag'
on:
push:
tags:
- '*'
jobs:
release:
permissions:
contents: write
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install && npm pack
- name: Build Changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@v1
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_PAT }}
- name: Create Release
uses: ncipollo/release-action@v1
with:
body: ${{steps.github_release.outputs.changelog}}
artifacts: "signalk-to-influxdb2*.tgz"
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_PAT }}