Skip to content

Commit fce2e5a

Browse files
Update Actions
Update action versions. Update node versions. Remove manual cache config since latest node action does auto caching. Format documents.
1 parent cdd818e commit fce2e5a

File tree

3 files changed

+27
-35
lines changed

3 files changed

+27
-35
lines changed

.github/workflows/Lint.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ on:
1111

1212
# Run the linting checks on every change
1313
push:
14-
branches: [ main ]
14+
branches: [main]
1515
pull_request:
16-
branches: [ main ]
16+
branches: [main]
1717

1818
# Define each session of execution that should be executed
1919
jobs:
@@ -26,15 +26,13 @@ jobs:
2626

2727
steps:
2828
# Checks-out your repository under $GITHUB_WORKSPACE
29-
- uses: actions/checkout@v4
29+
- uses: actions/checkout@v5
3030

3131
# Set up NodeJS on the build host
3232
- name: Setup Node.js environment
33-
uses: actions/setup-node@v4
33+
uses: actions/setup-node@v6
3434
with:
35-
node-version: 20.x
36-
cache: npm
37-
cache-dependency-path: package-lock.json
35+
node-version: 22
3836

3937
# Install all of the dependencies
4038
- name: Install All of the Project Dependencies

.github/workflows/NPM-Publish.yml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,18 @@ jobs:
1616

1717
# Configures the filter for which operating system that should be used when selecting runners
1818
runs-on: ubuntu-latest
19-
19+
2020
# Set of commands to run for the build job
2121
steps:
2222
# Checks-out your repository under $GITHUB_WORKSPACE
2323
- name: Clone Repo
24-
uses: actions/checkout@v4
24+
uses: actions/checkout@v5
2525

2626
# Set up NodeJS on the build host with caching support to optimize execution
2727
- name: Set up Node.js
28-
uses: actions/setup-node@v4
28+
uses: actions/setup-node@v6
2929
with:
3030
node-version: 22
31-
cache: npm
32-
cache-dependency-path: package-lock.json
3331

3432
# Make sure that all of the version numbers align before publishing
3533
- name: Ensure Synced Versions
@@ -81,20 +79,18 @@ jobs:
8179
attestations: write
8280
contents: read
8381
id-token: write
84-
82+
8583
# Set of commands to run for the build job
8684
steps:
8785
# Checks-out your repository under $GITHUB_WORKSPACE
8886
- name: Clone Repo
89-
uses: actions/checkout@v4
87+
uses: actions/checkout@v5
9088

9189
# Set up NodeJS on the build host with caching support to optimize execution
9290
- name: Set up Node.js
93-
uses: actions/setup-node@v4
91+
uses: actions/setup-node@v6
9492
with:
9593
node-version: 22
96-
cache: npm
97-
cache-dependency-path: package-lock.json
9894

9995
# Install all of the dependencies
10096
- name: Install All of the Project Dependencies
@@ -110,13 +106,13 @@ jobs:
110106

111107
# Create an attestation for the compiled package and upload it to the internal system for health tracking
112108
- name: Attest Compiled Package
113-
uses: actions/attest-build-provenance@v2
109+
uses: actions/attest-build-provenance@v3
114110
with:
115111
subject-path: package.zip
116112

117113
# Upload compiled zip file so that other execution sessions can use it
118114
- name: Upload Artifact for Deployment Job
119-
uses: actions/upload-artifact@v4
115+
uses: actions/upload-artifact@v5
120116
with:
121117
compression-level: 9
122118
if-no-files-found: error
@@ -148,15 +144,15 @@ jobs:
148144
steps:
149145
# Set up NodeJS on the build host with caching support to optimize execution
150146
- name: Set up Node.JS Runtime
151-
uses: actions/setup-node@v4
147+
uses: actions/setup-node@v6
152148
with:
153149
node-version: 22
154150
registry-url: https://registry.npmjs.org
155151
scope: shi-corp
156152

157153
# Download the compiled server binary
158154
- name: Download Artifact From Build Job
159-
uses: actions/download-artifact@v4
155+
uses: actions/download-artifact@v6
160156
with:
161157
name: ObjectID-Converter
162158

.github/workflows/Unit-Test.yml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ name: Dynamic Analysis - Unit Test
33

44
# When this workflow triggers
55
on:
6-
# Allows you to run this workflow manually from the Actions tab
7-
workflow_dispatch:
6+
# Allows you to run this workflow manually from the Actions tab
7+
workflow_dispatch:
88

9-
# Allow this workflow to be called from another workflow
10-
workflow_call:
9+
# Allow this workflow to be called from another workflow
10+
workflow_call:
1111

12-
# Run the unit tests on every change
13-
push:
14-
branches: [ main ]
15-
pull_request:
16-
branches: [ main ]
12+
# Run the unit tests on every change
13+
push:
14+
branches: [main]
15+
pull_request:
16+
branches: [main]
1717

1818
# Define each session of execution that should be executed
1919
jobs:
@@ -27,15 +27,13 @@ jobs:
2727
steps:
2828
# Checks-out your repository under $GITHUB_WORKSPACE
2929
- name: Clone Repo
30-
uses: actions/checkout@v4
30+
uses: actions/checkout@v5
3131

3232
# Set up NodeJS on the build host
3333
- name: Setup Node.JS Environment
34-
uses: actions/setup-node@v4
34+
uses: actions/setup-node@v6
3535
with:
36-
node-version: 20.x
37-
cache: npm
38-
cache-dependency-path: package-lock.json
36+
node-version: 22
3937

4038
# Install all of the dependencies
4139
- name: Install All of the Project Dependencies

0 commit comments

Comments
 (0)