Skip to content

Commit 61961d5

Browse files
authored
Merge pull request #43 from inpyjamas/disable-lockfile-maintenance
2 parents bf27fb1 + 3c38b49 commit 61961d5

10 files changed

Lines changed: 18176 additions & 3167 deletions

File tree

File renamed without changes.

.github/workflows/node.js.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/npm-publish.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Node.js CI
5+
on:
6+
push:
7+
branches: [master, staging]
8+
tags:
9+
- "v*"
10+
pull_request:
11+
branches: [master, staging]
12+
13+
jobs:
14+
build:
15+
if: "!contains(github.event.head_commit.message, 'skip ci')"
16+
runs-on: ubuntu-latest
17+
18+
strategy:
19+
matrix:
20+
node-version: [14.x, 16.x]
21+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
22+
steps:
23+
- name: Checkout technologiestiftung/stadtpuls-test-utils
24+
uses: actions/checkout@v3
25+
26+
- name: Use Node.js ${{ matrix.node-version }}
27+
uses: actions/setup-node@v2
28+
with:
29+
node-version: ${{ matrix.node-version }}
30+
- run: npm ci
31+
- run: npm test
32+
- run: npm run build --if-present
33+
34+
release:
35+
name: Release
36+
runs-on: ubuntu-latest
37+
if: "!contains(github.event.head_commit.message, 'skip ci')"
38+
needs:
39+
- build
40+
steps:
41+
- name: Checkout
42+
uses: actions/checkout@v2
43+
with:
44+
fetch-depth: 0
45+
- name: Setup Node.js
46+
uses: actions/setup-node@v2
47+
with:
48+
node-version: "lts/*"
49+
- name: Install dependencies
50+
run: npm ci
51+
- name: Release
52+
env:
53+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
54+
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
55+
run: npx semantic-release
56+
publish-gpr:
57+
needs: release
58+
runs-on: ubuntu-latest
59+
steps:
60+
- uses: actions/checkout@v3
61+
- uses: actions/setup-node@v2
62+
with:
63+
node-version: 12
64+
registry-url: https://npm.pkg.github.com/
65+
- run: npm ci
66+
- run: npm publish
67+
env:
68+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

.vscode/settings.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
"titleBar.activeBackground": "#037396",
1414
"titleBar.activeForeground": "#e7e7e7",
1515
"titleBar.inactiveBackground": "#03739699",
16-
"titleBar.inactiveForeground": "#e7e7e799"
16+
"titleBar.inactiveForeground": "#e7e7e799",
17+
"sash.hoverBorder": "#0499c8",
18+
"statusBarItem.remoteBackground": "#037396",
19+
"statusBarItem.remoteForeground": "#e7e7e7"
1720
},
1821
"peacock.color": "#037396"
19-
}
22+
}

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,16 @@ Enable renovete-bot for your repo and add the following to `renovate.json`
88

99
```json
1010
{
11-
"extends": [
12-
"@inpyjamas"
13-
]
11+
"extends": ["github>inpyjamas/renovate-config"]
12+
}
13+
```
14+
15+
or
16+
17+
```json
18+
{
19+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
20+
"extends": ["github>inpyjamas/renovate-config"],
21+
"baseBranches": ["staging"]
1422
}
1523
```

default.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"extends": ["config:base", "group:monorepos", ":ignoreModulesAndTests"],
3+
"schedule": ["every 2 weeks on Monday before 7am"],
4+
"timezone": "Europe/Berlin",
5+
"semanticCommits": "enabled",
6+
"lockFileMaintenance": { "enabled": false },
7+
"automergeType": "branch",
8+
"packageRules": [
9+
{
10+
"groupName": "renovate-meta",
11+
"semanticCommitType": "chore",
12+
"semanticCommitScope": "deps",
13+
"matchUpdateTypes": ["lockFileMaintenance", "pin"]
14+
},
15+
{
16+
"groupName": "dependencies-non-major",
17+
"semanticCommitType": "deps",
18+
"automerge": false,
19+
"matchDepTypes": ["dependencies"],
20+
"matchUpdateTypes": ["patch", "minor"]
21+
},
22+
{
23+
"groupName": "devDependencies-major",
24+
"semanticCommitType": "chore",
25+
"semanticCommitScope": "deps",
26+
"automerge": false,
27+
"matchDepTypes": ["devDependencies"],
28+
"matchUpdateTypes": ["major"]
29+
},
30+
{
31+
"groupName": "devDependencies-non-major",
32+
"automerge": true,
33+
"semanticCommitType": "chore",
34+
"semanticCommitScope": "deps",
35+
"matchDepTypes": ["devDependencies"],
36+
"matchUpdateTypes": ["patch", "minor"]
37+
}
38+
]
39+
}

0 commit comments

Comments
 (0)