diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 918ba852..a5368dcf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/action.yml b/action.yml index 749d2362..73024ded 100644 --- a/action.yml +++ b/action.yml @@ -17,5 +17,5 @@ inputs: environment variable. required: false runs: - using: node12 + using: node16 main: dist/index.js diff --git a/package.json b/package.json index 45a10bbb..e5e78904 100644 --- a/package.json +++ b/package.json @@ -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" },