Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
feat: github ci and renovate (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
productdevbook authored Oct 6, 2023
1 parent 01ed4f0 commit 09aa15b
Show file tree
Hide file tree
Showing 3 changed files with 146 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
pull-requests: write
contents: read

on:
push:
branches:
- main

pull_request:
branches:
- main

jobs:
build-test:
name: 📚 Main
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v4

- run: corepack enable
- uses: actions/setup-node@v3
with:
node-version: '18'
cache: pnpm

- name: 📦 Install dependencies
run: pnpm install --frozen-lockfile

- name: 👀 Lint
run: pnpm lint

- name: 🚀 Build
run: pnpm build

# - name: 🧪 Test
# run: pnpm test

# - name: 🧪 Test with coverage
# run: pnpm coverage

# - name: 📝 Upload coverage
# if: always()
# uses: davelosert/vitest-coverage-report-action@v2
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Release

on:
push:
tags:
- 'v*'

permissions:
pull-requests: write
contents: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-node@v3
with:
node-version: 20.x

- run: npx changelogithub
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65 changes: 65 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
],
"rebaseWhen": "conflicted",
"schedule": [
"every 8 months on the first day of the month"
],
"baseBranches": [
"main"
],
"rangeStrategy": "bump",
"ignoreDeps": [
"node",
"pnpm"
],
"packageRules": [
{
"enabled": false,
"matchDepTypes": [
"peerDependencies"
]
},
{
"groupName": "playground",
"commitMessageTopic": "playground",
"matchPaths": [
"playground/**"
],
"matchUpdateTypes": [
"major",
"minor",
"patch"
],
"matchDatasources": [
"npm"
]
},
{
"groupName": "root",
"matchUpdateTypes": [
"patch",
"minor",
"major"
],
"ignorePaths": [
"**/playground/**"
],
"matchDatasources": [
"npm",
"github-actions"
],
"labels": [
"dependencies"
],
"addLabels": [
"dependencies"
],
"matchFiles": [
"package.json"
]
}
]
}

0 comments on commit 09aa15b

Please sign in to comment.