Skip to content

Commit

Permalink
Update workflows and configure renovate
Browse files Browse the repository at this point in the history
  • Loading branch information
sjinks committed Dec 2, 2021
1 parent dc4152f commit 05d4080
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 50 deletions.
11 changes: 0 additions & 11 deletions .github/dependabot.yml

This file was deleted.

6 changes: 6 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"local>sjinks/.github:renovate-config"
]
}
13 changes: 3 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,10 @@ jobs:
uses: actions/[email protected]
with:
node-version: ${{ matrix.node }}
cache: npm

- name: Cache Node modules
uses: actions/[email protected]
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node }}-
${{ runner.os }}-build-${{ env.cache-name }}-
- name: Update npm
run: npm i -g npm

- name: Install dependencies
run: npm ci --ignore-scripts
Expand Down
17 changes: 2 additions & 15 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ on:
description: Publish to NPM?
required: true

env:
NODE_VERSION: 14

jobs:
prepare:
name: Prepare the source code
Expand All @@ -28,18 +25,8 @@ jobs:
- name: Set up Node.js environment
uses: actions/[email protected]
with:
node-version: ${{ env.NODE_VERSION }}

- name: Cache Node modules
uses: actions/[email protected]
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ env.NODE_VERSION }}-
${{ runner.os }}-build-${{ env.cache-name }}-
node-version: lts/*
cache: npm

- name: Install dependencies
run: npm ci --ignore-scripts
Expand Down
18 changes: 4 additions & 14 deletions .github/workflows/push-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ on:
tags:
- "*"

env:
NODE_VERSION: 14

jobs:
build:
name: Build
Expand All @@ -19,18 +16,11 @@ jobs:
- name: Set up Node.js environment
uses: actions/[email protected]
with:
node-version: ${{ env.NODE_VERSION }}
node-version: lts/*
cache: npm

- name: Cache Node modules
uses: actions/[email protected]
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ env.NODE_VERSION }}-
${{ runner.os }}-build-${{ env.cache-name }}-
- name: Update npm
run: npm i -g npm

- name: Install dependencies
run: npm ci --ignore-scripts
Expand Down

0 comments on commit 05d4080

Please sign in to comment.