Skip to content

Commit

Permalink
Update dependencies (#5)
Browse files Browse the repository at this point in the history
* Bumped packages to the latest versions

* Update npm dependency to the latest stable version

* Bumped gh actions

* Removed caret from @actions/core, and label from nodejs job
  • Loading branch information
zaxovaiko authored Jul 26, 2024
1 parent b261bfc commit 0381101
Show file tree
Hide file tree
Showing 18 changed files with 62,639 additions and 14,693 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/check_dependency_duplications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,17 @@ on:
- npm-dependency-duplications
workflow_dispatch:


jobs:
units:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js 16
uses: actions/setup-node@v2.5.1
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
cache: 'npm'
cache-dependency-path: '${{ github.workspace }}/actions/npm-dependency-duplications/package-lock.json'
- name: Run tests
working-directory: ./actions/npm-dependency-duplications
run: |
Expand All @@ -27,13 +28,14 @@ jobs:
check-dist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set Node.js 16
uses: actions/setup-node@v2.5.1
- name: Set Node.js
uses: actions/setup-node@v4
with:
node-version: 16

node-version: 20
cache: 'npm'
cache-dependency-path: '${{ github.workspace }}/actions/npm-dependency-duplications/package-lock.json'
- name: Install dependencies and build
working-directory: ./actions/npm-dependency-duplications
run: |
Expand All @@ -51,7 +53,7 @@ jobs:
id: diff

# If index.js was different from expected, upload the expected version as an artifact
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
with:
name: dist
Expand All @@ -61,5 +63,5 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: ./actions/npm-dependency-duplications
25 changes: 14 additions & 11 deletions .github/workflows/check_dependency_vulnerabilities.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ jobs:
units:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set Node.js 16
uses: actions/setup-node@v2.5.1
- uses: actions/checkout@v4
- name: Set Node.js
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
cache: 'npm'
cache-dependency-path: '${{ github.workspace }}/actions/npm-dependency-vulnerabilities/package-lock.json'
- name: Run tests
working-directory: ./actions/npm-dependency-vulnerabilities
run: |
Expand All @@ -26,13 +28,14 @@ jobs:
check-dist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set Node.js 16
uses: actions/setup-node@v2.5.1
- name: Set Node.js
uses: actions/setup-node@v4
with:
node-version: 16

node-version: 20
cache: 'npm'
cache-dependency-path: '${{ github.workspace }}/actions/npm-dependency-vulnerabilities/package-lock.json'
- name: Install dependencies and build
working-directory: ./actions/npm-dependency-vulnerabilities
run: |
Expand All @@ -50,7 +53,7 @@ jobs:
id: diff

# If index.js was different from expected, upload the expected version as an artifact
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
with:
name: dist
Expand All @@ -60,5 +63,5 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: ./actions/npm-dependency-vulnerabilities
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 Vazco
Copyright (c) 2024 Vazco

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion actions/npm-dependency-duplications/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ inputs:
description: npm project localization
required: false
runs:
using: node16
using: node20
main: dist/index.js
Loading

0 comments on commit 0381101

Please sign in to comment.