Skip to content

Commit

Permalink
ci(github-actions): adding release action
Browse files Browse the repository at this point in the history
  • Loading branch information
bl4ko committed Feb 18, 2024
1 parent e90918e commit 379eb1e
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 6 deletions.
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
root = true

[*]
insert_final_newline = true
charset = utf-8
trim_trailing_whitespace = true
indent_style = space
indent_size = 2
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Update tags and create release
on:
push:
branches: [main]
workflow_dispatch:

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "lts/*"

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: npx [email protected]
36 changes: 30 additions & 6 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,45 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:base"],
"baseBranches": ["main"],
"rangeStrategy": "bump",
"extends": [
"config:recommended",
"docker:pinDigests",
"helpers:pinGitHubActionDigests",
":pinDevDependencies"
],
"pre-commit": {
"enabled": true
},
"regexManagers": [
{
"description": "Update semantic-release version used by npx",
"fileMatch": ["^\\.github/workflows/[^/]+\\.ya?ml$"],
"matchStrings": ["\\srun: npx semantic-release@(?<currentValue>.*?)\\s"],
"datasourceTemplate": "npm",
"depNameTemplate": "semantic-release"
}
],
"packageRules": [
{
"matchManagers": ["gomod"],
"matchDepTypes": ["golang"],
"enabled": false
"groupName": "go dependencies",
"automerge": true
},
{
"matchManagers": ["github-actions"],
"groupName": "github actions",
"automerge": true
},
{
"matchManagers": ["dockerfile"],
"groupName": "dockerfile dependencies",
"automerge": true
},
{
"matchUpdateTypes": ["major", "minor", "patch", "pin", "digest"],
"matchManagers": ["regex"],
"groupName": "semantic-release",
"automerge": true,
"groupName": "go dependencies"
"automergeStrategy": "rebase"
}
]
}

0 comments on commit 379eb1e

Please sign in to comment.