Compare commits
13 commits
Author | SHA1 | Date | |
---|---|---|---|
12b9f7ac51 |
|||
a8ddce75a2 |
|||
ef7cc40f83 | |||
d017433bc1 | |||
e031e9b0e6 | |||
b4d1f9181a | |||
ac1ba7df2b | |||
a7c4051e98 | |||
050cd55e03 | |||
01ba711b20 | |||
7d190234a0 | |||
73a5143f82 | |||
ff18094bc3 |
2 changed files with 14 additions and 4 deletions
|
@ -1,6 +1,8 @@
|
||||||
name: Release
|
name: Release
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||||
|
|
16
action.yml
16
action.yml
|
@ -7,6 +7,10 @@ inputs:
|
||||||
GITEA_TOKEN:
|
GITEA_TOKEN:
|
||||||
description: "Gitea token"
|
description: "Gitea token"
|
||||||
required: true
|
required: true
|
||||||
|
NPM_TOKEN:
|
||||||
|
description: "NPM Publish token"
|
||||||
|
required: false
|
||||||
|
default: ""
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
|
@ -20,12 +24,16 @@ runs:
|
||||||
with:
|
with:
|
||||||
node-version: "lts/*"
|
node-version: "lts/*"
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm install semantic-release @saithodev/semantic-release-gitea @semantic-release/changelog
|
run: npm install semantic-release @saithodev/semantic-release-gitea @semantic-release/changelog @semantic-release/release-notes-generator commitlint-plugin-cleanfeet conventional-changelog-conventionalcommits @semantic-release/git
|
||||||
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
|
|
||||||
run: npm audit signatures
|
|
||||||
- name: Release
|
- name: Release
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
|
||||||
GITEA_TOKEN: ${{ inputs.GITEA_TOKEN }}
|
GITEA_TOKEN: ${{ inputs.GITEA_TOKEN }}
|
||||||
run: npx semantic-release
|
NPM_TOKEN: ${{ inputs.NPM_TOKEN }}
|
||||||
|
uses: cycjimmy/semantic-release-action@v4
|
||||||
|
id: semantic
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
new_release_published:
|
||||||
|
description: "The output from the action"
|
||||||
|
value: ${{ steps.semantic.outputs.new_release_published }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue