mirror of
https://github.com/renovatebot/github-action.git
synced 2025-12-16 00:42:35 +00:00
feat: migrate to node v16 (#611)
* ci: support manual release and fix commit message * feat: require node v16
This commit is contained in:
parent
61ab5a7228
commit
825caf3e3b
3 changed files with 14 additions and 6 deletions
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
|
|
@ -3,6 +3,7 @@ name: Build
|
|||
on:
|
||||
push:
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
|
||||
|
|
@ -32,7 +33,7 @@ jobs:
|
|||
- name: Setup node
|
||||
uses: actions/setup-node@9ced9a43a244f3ac94f13bfd896db8c8f30da67a # tag=v3.0.0
|
||||
with:
|
||||
node-version: '12.x'
|
||||
node-version: '16.x'
|
||||
cache: 'yarn'
|
||||
|
||||
- name: Install project
|
||||
|
|
@ -85,8 +86,11 @@ jobs:
|
|||
needs: [build]
|
||||
runs-on: ubuntu-latest
|
||||
if: |
|
||||
startsWith(github.event.commits[0].message,
|
||||
'fix(deps): update renovate/renovate docker tag ')
|
||||
(
|
||||
startsWith(github.event.commits[0].message, 'fix(deps): update renovate/renovate docker tag ')
|
||||
|| startsWith(github.event.commits[0].message, 'fix(deps): update dependency renovate/renovate ')
|
||||
|| github.event_name == 'workflow_dispatch'
|
||||
)
|
||||
&& github.ref == 'refs/heads/main'
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
|
@ -106,7 +110,7 @@ jobs:
|
|||
- name: Setup node
|
||||
uses: actions/setup-node@9ced9a43a244f3ac94f13bfd896db8c8f30da67a # tag=v3.0.0
|
||||
with:
|
||||
node-version: '12.x'
|
||||
node-version: '16.x'
|
||||
- name: Install project
|
||||
run: yarn install --frozen-lockfile --ignore-scripts
|
||||
- name: Get version
|
||||
|
|
|
|||
|
|
@ -17,5 +17,5 @@ inputs:
|
|||
environment variable.
|
||||
required: false
|
||||
runs:
|
||||
using: node12
|
||||
using: node16
|
||||
main: dist/index.js
|
||||
|
|
|
|||
|
|
@ -4,6 +4,10 @@
|
|||
"description": "GitHub Action to run Renovate self-hosted.",
|
||||
"private": true,
|
||||
"main": "src/index.ts",
|
||||
"engines": {
|
||||
"node": " >=16.0.0",
|
||||
"yarn": ">=1.22.0"
|
||||
},
|
||||
"scripts": {
|
||||
"format": "prettier --ignore-unknown --write \"**/*.*\"",
|
||||
"format:file": "prettier --write",
|
||||
|
|
@ -17,7 +21,7 @@
|
|||
"release:commit": "git add --force dist",
|
||||
"release:standard-version": "standard-version --release-as",
|
||||
"release": "run-s build release:commit \"release:standard-version -- {1}\" --",
|
||||
"build": "ncc build -o dist",
|
||||
"build": "ncc build -o dist --target es2021",
|
||||
"start": "run-s build && node dist",
|
||||
"prepare": "husky install"
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue