semantic-release/action.yml
2024-08-25 18:07:43 +02:00

32 lines
857 B
YAML

name: "Semantic Release"
description: "Automatically creates semantic releases"
inputs:
GITHUB_TOKEN:
description: "Github token"
required: true
GITEA_TOKEN:
description: "Gitea token"
required: true
runs:
using: "composite"
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "lts/*"
- name: Install dependencies
run: npm install semantic-release @saithodev/semantic-release-gitea
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures
- name: Release
env:
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
GITEA_TOKEN: ${{ inputs.GITEA_TOKEN }}
run: npx semantic-release