Compare commits
4 Commits
feat-add-n
...
0.0.3
| Author | SHA1 | Date | |
|---|---|---|---|
| 4d70414705 | |||
| 1b3aa245ae | |||
| b569618421 | |||
| 531d8441c4 |
24
.gitea/workflows/cd.yaml
Normal file
24
.gitea/workflows/cd.yaml
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
name: CD
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
name: Release
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Increment tag
|
||||||
|
id: tag
|
||||||
|
uses: https://gitea.t000-n.de/t.behrendt/conventional-semantic-git-tag-increment@0.1.2
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITEA_TOKEN }}
|
||||||
|
- name: Push tag
|
||||||
|
uses: ./release-git-tag
|
||||||
|
with:
|
||||||
|
tag: ${{ steps.tag.outputs.new-tag }}
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
name: Run NodeJS script with package cache
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_call:
|
|
||||||
inputs:
|
|
||||||
script:
|
|
||||||
description: Path to the Node.js script to run
|
|
||||||
type: string
|
|
||||||
required: true
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
run-node:
|
|
||||||
name: Run NodeJS script
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: ./.gitea/workflows/setup_node.yaml
|
|
||||||
with:
|
|
||||||
node-version-file: .nvmrc
|
|
||||||
- run: npm run ${{ inputs.script }}
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
name: Setup NodeJS with package cache
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_call:
|
|
||||||
inputs:
|
|
||||||
node-version-file:
|
|
||||||
description: Path to the Node.js version file
|
|
||||||
type: string
|
|
||||||
required: false
|
|
||||||
default: .nvmrc
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
setup-node:
|
|
||||||
name: Setup NodeJS
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: actions/cache@v4
|
|
||||||
id: cache-modules
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.npm
|
|
||||||
node_modules
|
|
||||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-node-
|
|
||||||
- uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version-file: ${{ inputs.node-version-file }}
|
|
||||||
cache: "npm"
|
|
||||||
- if: steps.cache-modules.outputs.cache-hit != 'true'
|
|
||||||
run: npm ci
|
|
||||||
@@ -1,3 +1,7 @@
|
|||||||
# actions
|
# actions
|
||||||
|
|
||||||
Collection of Gitea friendly actions & workflows
|
Collection of Gitea friendly actions.
|
||||||
|
|
||||||
|
## Actions
|
||||||
|
|
||||||
|
- [release-git-tag](./release-git-tag//README.md)
|
||||||
|
|||||||
9
release-git-tag/README.md
Normal file
9
release-git-tag/README.md
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# release-git-tag
|
||||||
|
|
||||||
|
Creates and pushes a Git tag to the remote repository.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
- uses: ./release-git-tag
|
||||||
|
with:
|
||||||
|
tag: v1.0.0
|
||||||
|
```
|
||||||
15
release-git-tag/action.yaml
Normal file
15
release-git-tag/action.yaml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
name: Release Git tag
|
||||||
|
description: Releases a Git to origin
|
||||||
|
|
||||||
|
inputs:
|
||||||
|
tag:
|
||||||
|
description: The tag to release
|
||||||
|
required: true
|
||||||
|
|
||||||
|
runs:
|
||||||
|
using: "composite"
|
||||||
|
steps:
|
||||||
|
- shell: bash
|
||||||
|
run: |
|
||||||
|
git tag ${{ inputs.tag }}
|
||||||
|
git push origin ${{ inputs.tag }}
|
||||||
7
renovate.json
Normal file
7
renovate.json
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
|
"extends": [
|
||||||
|
"local>t.behrendt/renovate-configs:common",
|
||||||
|
"local>t.behrendt/renovate-configs:action"
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user