Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop support for Node.js 16 and add Node.js 20 🐢 #260

Merged
merged 4 commits into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@96f53100ba2a5449eb71d2e6604bbcd94b9449b5
- uses: actions/checkout@v4

- name: Use Node.js 18
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8
- name: Use Node.js 20
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
cache: yarn

- name: Install dependencies
Expand All @@ -52,7 +52,7 @@ jobs:
id: diff

# If index.js was different than expected, upload the expected version as an artifact
- uses: actions/upload-artifact@65d862660abb392b8c4a3d1195a2108db131dd05
- uses: actions/upload-artifact@v2
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
with:
name: dist
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@96f53100ba2a5449eb71d2e6604bbcd94b9449b5
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@2ff6d83d0798cb9bbc48b19f665607b88ba08f69
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
source-root: src

- name: Autobuild
uses: github/codeql-action/autobuild@2ff6d83d0798cb9bbc48b19f665607b88ba08f69
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@2ff6d83d0798cb9bbc48b19f665607b88ba08f69
uses: github/codeql-action/analyze@v2
4 changes: 2 additions & 2 deletions .github/workflows/issue-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
template: [ issue-template.yml ]

steps:
- uses: actions/checkout@96f53100ba2a5449eb71d2e6604bbcd94b9449b5
- uses: actions/checkout@v4

- name: Parse issue form
uses: stefanbuck/github-issue-parser@c1a559d78bfb8dd05216dab9ffd2b91082ff5324
uses: stefanbuck/github-issue-parser@v3
id: issue-parser
with:
template-path: .github/ISSUE_TEMPLATE/${{ matrix.template }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@96f53100ba2a5449eb71d2e6604bbcd94b9449b5
- uses: actions/checkout@v4

- name: Use Node.js 18.x
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
cache: yarn

- name: Install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

steps:
- name: Repository checkout
uses: actions/checkout@96f53100ba2a5449eb71d2e6604bbcd94b9449b5
uses: actions/checkout@v4

- name: Update tag
uses: Actions-R-Us/actions-tagger@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ jobs:
pull-requests: write

steps:
- uses: release-drafter/release-drafter@6df64e4ba4842c203c604c1f45246c5863410adb
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10 changes: 5 additions & 5 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ jobs:

strategy:
matrix:
node-version: [ 16.x, 18.x ]
node-version: [ 18.x, 20.x ]

steps:
- uses: actions/checkout@96f53100ba2a5449eb71d2e6604bbcd94b9449b5
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: yarn
Expand All @@ -44,5 +44,5 @@ jobs:
run: yarn test

- name: Codecov
if: ${{ matrix.node-version == '18.x' }}
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d
if: ${{ matrix.node-version == '20.x' }}
uses: codecov/codecov-action@v3
133 changes: 0 additions & 133 deletions .mergify.yml

This file was deleted.

5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

[![GitHub Marketplace][market-status]][market] [![Lint Code Base][linter-status]][linter] [![Unit Tests][test-status]][test] [![CodeQL][codeql-status]][codeql] [![Check dist/][check-dist-status]][check-dist]

[![Demo][demo-status]][demo] [![codecov][codecov-status]][codecov] [![Mergify Status][mergify-status]][mergify]
[![Demo][demo-status]][demo] [![codecov][codecov-status]][codecov]

<!-- Status links -->

Expand All @@ -31,9 +31,6 @@
[codecov]: https://codecov.io/gh/redhat-plumbers-in-action/advanced-issue-labeler
[codecov-status]: https://codecov.io/gh/redhat-plumbers-in-action/advanced-issue-labeler/branch/main/graph/badge.svg

[mergify]: https://mergify.com
[mergify-status]: https://img.shields.io/endpoint.svg?url=https://api.mergify.com/v1/badges/redhat-plumbers-in-action/advanced-issue-labeler&style=flat

<!-- -->

Advanced Issue Labeler is a GitHub Action that can automatically label issues based on user input. The idea for this project came from and was first introduced in [@systemd/systemd](https://github.com/systemd/systemd). Systemd repository has a very active community with many issues to process. Automatic labeling helps with issue triaging.
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ inputs:
description: GitHub token used to set issue labels

runs:
using: node16
using: node20
main: dist/index.js
3 changes: 0 additions & 3 deletions dist/app.d.ts

This file was deleted.

46 changes: 0 additions & 46 deletions dist/app.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/app.js.map

This file was deleted.

Loading
Loading