Skip to content

Commit

Permalink
Merge pull request #43 from inpyjamas/disable-lockfile-maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
ff6347 authored Apr 5, 2022
2 parents bf27fb1 + 3c38b49 commit 61961d5
Show file tree
Hide file tree
Showing 10 changed files with 18,176 additions and 3,167 deletions.
File renamed without changes.
35 changes: 0 additions & 35 deletions .github/workflows/node.js.yml

This file was deleted.

47 changes: 0 additions & 47 deletions .github/workflows/npm-publish.yml

This file was deleted.

68 changes: 68 additions & 0 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI
on:
push:
branches: [master, staging]
tags:
- "v*"
pull_request:
branches: [master, staging]

jobs:
build:
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x, 16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- name: Checkout technologiestiftung/stadtpuls-test-utils
uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm test
- run: npm run build --if-present

release:
name: Release
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip ci')"
needs:
- build
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: "lts/*"
- name: Install dependencies
run: npm ci
- name: Release
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
run: npx semantic-release
publish-gpr:
needs: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
7 changes: 5 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
"titleBar.activeBackground": "#037396",
"titleBar.activeForeground": "#e7e7e7",
"titleBar.inactiveBackground": "#03739699",
"titleBar.inactiveForeground": "#e7e7e799"
"titleBar.inactiveForeground": "#e7e7e799",
"sash.hoverBorder": "#0499c8",
"statusBarItem.remoteBackground": "#037396",
"statusBarItem.remoteForeground": "#e7e7e7"
},
"peacock.color": "#037396"
}
}
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,16 @@ Enable renovete-bot for your repo and add the following to `renovate.json`

```json
{
"extends": [
"@inpyjamas"
]
"extends": ["github>inpyjamas/renovate-config"]
}
```

or

```json
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["github>inpyjamas/renovate-config"],
"baseBranches": ["staging"]
}
```
39 changes: 39 additions & 0 deletions default.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"extends": ["config:base", "group:monorepos", ":ignoreModulesAndTests"],
"schedule": ["every 2 weeks on Monday before 7am"],
"timezone": "Europe/Berlin",
"semanticCommits": "enabled",
"lockFileMaintenance": { "enabled": false },
"automergeType": "branch",
"packageRules": [
{
"groupName": "renovate-meta",
"semanticCommitType": "chore",
"semanticCommitScope": "deps",
"matchUpdateTypes": ["lockFileMaintenance", "pin"]
},
{
"groupName": "dependencies-non-major",
"semanticCommitType": "deps",
"automerge": false,
"matchDepTypes": ["dependencies"],
"matchUpdateTypes": ["patch", "minor"]
},
{
"groupName": "devDependencies-major",
"semanticCommitType": "chore",
"semanticCommitScope": "deps",
"automerge": false,
"matchDepTypes": ["devDependencies"],
"matchUpdateTypes": ["major"]
},
{
"groupName": "devDependencies-non-major",
"automerge": true,
"semanticCommitType": "chore",
"semanticCommitScope": "deps",
"matchDepTypes": ["devDependencies"],
"matchUpdateTypes": ["patch", "minor"]
}
]
}
Loading

0 comments on commit 61961d5

Please sign in to comment.