-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from inpyjamas/disable-lockfile-maintenance
- Loading branch information
Showing
10 changed files
with
18,176 additions
and
3,167 deletions.
There are no files selected for viewing
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] | ||
} | ||
] | ||
} |
Oops, something went wrong.