2024-08-25 15:58:48 +00:00
|
|
|
name: "Semantic Release"
|
|
|
|
description: "Automatically creates semantic releases"
|
2024-08-25 16:07:43 +00:00
|
|
|
inputs:
|
|
|
|
GITHUB_TOKEN:
|
|
|
|
description: "Github token"
|
|
|
|
required: true
|
|
|
|
GITEA_TOKEN:
|
|
|
|
description: "Gitea token"
|
|
|
|
required: true
|
2024-08-25 15:58:48 +00:00
|
|
|
|
|
|
|
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:
|
2024-08-25 16:07:43 +00:00
|
|
|
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
|
|
|
|
GITEA_TOKEN: ${{ inputs.GITEA_TOKEN }}
|
2024-08-25 15:58:48 +00:00
|
|
|
run: npx semantic-release
|
|
|
|
|