Skip to content

Commit

Permalink
fix: fix renovate config generation
Browse files Browse the repository at this point in the history
  • Loading branch information
dword-design committed Jul 4, 2020
1 parent 85ec649 commit ee27e9b
Show file tree
Hide file tree
Showing 11 changed files with 67 additions and 50 deletions.
82 changes: 41 additions & 41 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,49 @@
name: build
on:
push:
branches:
- "**"
jobs:
cancel-existing:
runs-on: ubuntu-latest
steps:
- uses: rokroskar/workflow-run-cleanup-action@v0.2.2
env:
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: rokroskar/workflow-run-cleanup-action@v0.2.2
release:
if: github.ref == 'refs/heads/master'
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- run: git config --global user.email "actions@github.com"
- run: git config --global user.name "GitHub Actions"
- run: yarn --frozen-lockfile
- run: yarn lint
- env:
GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
name: Push changed files
run: yarn dw-ci push-changed-files
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
name: Release
run: yarn semantic-release
test:
needs: cancel-existing
strategy:
matrix:
exclude:
- node: 10
os: macos-latest
- node: 10
os: windows-latest
node:
- 10
- 12
os:
- macos-latest
- windows-latest
- ubuntu-latest
node:
- 10
- 12
exclude:
- os: macos-latest
node: 10
- os: windows-latest
node: 10
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
Expand All @@ -38,32 +56,14 @@ jobs:
- run: yarn test
- name: Coveralls
if: matrix.os == 'ubuntu-latest' && matrix.node == 12
run: yarn dw-ci coveralls
env:
COVERALLS_GIT_BRANCH: ${{ github.ref }}
COVERALLS_GIT_COMMIT: ${{ github.sha }}
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_SERVICE_NAME: github
COVERALLS_GIT_COMMIT: ${{ github.sha }}
COVERALLS_GIT_BRANCH: ${{ github.ref }}
release:
needs: test
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- run: git config --global user.email "actions@github.com"
- run: git config --global user.name "GitHub Actions"
- run: yarn --frozen-lockfile
- run: yarn lint
- name: Push changed files
run: yarn dw-ci push-changed-files
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }}
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn semantic-release
run: yarn dw-ci coveralls
name: build
on:
push:
branches:
- "**"
25 changes: 25 additions & 0 deletions .renovaterc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"extends": [
":semanticCommits"
],
"packageRules": [
{
"packagePatterns": [
"*"
],
"semanticCommitType": "chore"
},
{
"depTypeList": [
"dependencies",
"devDependencies",
"peerDependencies",
"optionalDependencies"
],
"semanticCommitType": "fix"
}
],
"lockFileMaintenance": {
"enabled": true
}
}
1 change: 0 additions & 1 deletion .renovaterc.json/extends/0

This file was deleted.

1 change: 0 additions & 1 deletion .renovaterc.json/packageRules/0/packagePatterns/0

This file was deleted.

1 change: 0 additions & 1 deletion .renovaterc.json/packageRules/0/semanticCommitType

This file was deleted.

1 change: 0 additions & 1 deletion .renovaterc.json/packageRules/1/depTypeList/0

This file was deleted.

1 change: 0 additions & 1 deletion .renovaterc.json/packageRules/1/depTypeList/1

This file was deleted.

1 change: 0 additions & 1 deletion .renovaterc.json/packageRules/1/depTypeList/2

This file was deleted.

1 change: 0 additions & 1 deletion .renovaterc.json/packageRules/1/depTypeList/3

This file was deleted.

1 change: 0 additions & 1 deletion .renovaterc.json/packageRules/1/semanticCommitType

This file was deleted.

2 changes: 1 addition & 1 deletion src/prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default async () => {
'.gitpod.Dockerfile': gitpodDockerfile,
'.gitpod.yml': gitpodConfig,
'.releaserc.json': releaseConfig |> jsonToString({ indent: 2 }),
'.renovaterc.json': renovateConfig,
'.renovaterc.json': renovateConfig |> jsonToString({ indent: 2 }),
'.vscode/settings.json': vscodeConfig |> jsonToString({ indent: 2 }),
'LICENSE.md': licenseString,
'README.md': readmeString,
Expand Down

0 comments on commit ee27e9b

Please sign in to comment.