Reviewed-on: #62 Co-authored-by: Timo Behrendt <t.behrendt@t00n.de> Co-committed-by: Timo Behrendt <t.behrendt@t00n.de>
36 lines
828 B
YAML
36 lines
828 B
YAML
name: CD
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "action.yml"
|
|
- "src/**"
|
|
- "dist/**"
|
|
- "package.json"
|
|
- "package-lock.json"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
release:
|
|
name: Release
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
|
|
with:
|
|
node-version-file: .nvmrc
|
|
- run: npm ci
|
|
- name: Increment tag
|
|
id: increment-tag
|
|
uses: ./
|
|
with:
|
|
token: ${{ secrets.GITEA_TOKEN }}
|
|
- name: Push tag
|
|
run: |
|
|
git tag ${{ steps.increment-tag.outputs.new-tag }}
|
|
git push origin ${{ steps.increment-tag.outputs.new-tag }}
|