25 lines
719 B
YAML
25 lines
719 B
YAML
|
name: "Semantic Release"
|
||
|
description: "Automatically creates semantic releases"
|
||
|
|
||
|
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: ${{ secrets.GITHUB_TOKEN }}
|
||
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||
|
run: npx semantic-release
|
||
|
|