Skip to content

Commit

Permalink
Merge pull request #100 from the-unicorns/feat/upgrade-renovate
Browse files Browse the repository at this point in the history
feat!: Upgrade Renovate configuration and release
  • Loading branch information
hjemmel committed May 25, 2024
2 parents de64c58 + d3d9e8a commit 1739b16
Show file tree
Hide file tree
Showing 11 changed files with 8,370 additions and 8,361 deletions.
52 changes: 0 additions & 52 deletions .circleci/config.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: CI

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: next-9
standalone: true

- name: Install Node
uses: actions/setup-node@v4
with:
node-version-file: ".tool-versions"
cache: "pnpm"

- name: pnpm install
run: pnpm install

- name: Test
run: pnpm test
15 changes: 15 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Release Please

on:
push:
branches:
- master

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
10 changes: 0 additions & 10 deletions .releaserc

This file was deleted.

1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodejs 20.13.1
9 changes: 3 additions & 6 deletions basic.test.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const test = require("tape");
const pkgJson = require("./package.json");
const pkgJson = require("./default.json");

// Validate the config with Renovate
require("renovate/dist/config-validator");

const renovatePkgExtends = pkgJson["renovate-config"].default.extends;
const renovatePkgExtends = pkgJson.extends;

const baseRules = [
"config:base",
Expand All @@ -26,10 +26,7 @@ test("Check if extends is correct", function (t) {
});

test("Check master issue auto close", function (t) {
t.ok(
pkgJson["renovate-config"].default.dependencyDashboardAutoclose,
`Master issue auto close enabled`
);
t.ok(pkgJson.dependencyDashboardAutoclose, `Master issue auto close enabled`);

t.end();
});
13 changes: 13 additions & 0 deletions default.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"description": "The Unicorns Renovate Shareable Config",
"extends": [
"config:base",
":dependencyDashboard",
":dependencyDashboardApproval",
":labels(renovate, dependencies)",
"group:monorepos",
"group:recommended",
":semanticCommits"
],
"dependencyDashboardAutoclose": true
}
39 changes: 6 additions & 33 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,43 +7,16 @@
"author": "Hans Jakob Emmel",
"license": "MIT",
"scripts": {
"cm": "git-cz",
"release": "semantic-release",
"test": "tape *.test.js",
"test:junit": "yarn test | tap-junit --output test-results -n result.xml"
"test": "tape *.test.js"
},
"publishConfig": {
"access": "public"
},
"renovate-config": {
"default": {
"extends": [
"config:base",
":dependencyDashboard",
":dependencyDashboardApproval",
":labels(renovate, dependencies)",
"group:monorepos",
"group:recommended",
":semanticCommits"
],
"dependencyDashboardAutoclose": true
}
},
"devDependencies": {
"@semantic-release/changelog": "6.0.1",
"@semantic-release/commit-analyzer": "9.0.2",
"@semantic-release/git": "10.0.1",
"@semantic-release/release-notes-generator": "10.0.3",
"core-js": "3.21.0",
"cz-conventional-changelog": "3.3.0",
"renovate": "31.80.0",
"semantic-release": "19.0.2",
"tap-junit": "5.0.1",
"tape": "5.5.1"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
"core-js": "3.37.1",
"renovate": "37.377.4",
"tap-junit": "5.0.3",
"tap-markdown": "^1.2.1",
"tape": "^5.7.5"
}
}
Loading

0 comments on commit 1739b16

Please sign in to comment.