Files
conventional-semantic-git-t…/.gitea/workflows/cd.yaml
T
t.behrendt ecf3293d6f ci: pin actions to full semver (#77)
Reviewed-on: #77
Co-authored-by: Timo Behrendt <t.behrendt@t00n.de>
Co-committed-by: Timo Behrendt <t.behrendt@t00n.de>
2026-05-31 10:18:34 +02:00

36 lines
832 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@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
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 }}