semantic-release/action.yml

31 lines
971 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@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3
with:
node-version: "lts/*"
- name: Install dependencies
run: npm install semantic-release @saithodev/semantic-release-gitea @semantic-release/changelog
- 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