Skip to content

Commit b831d95

Browse files
committed
update actions workflow files
1 parent a09164f commit b831d95

File tree

6 files changed

+12
-37
lines changed

6 files changed

+12
-37
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
language: [ 'javascript' ]
2626

2727
steps:
28-
- uses: actions/checkout@v3.5.0
28+
- uses: actions/checkout@v3
2929

3030
- name: Initialize CodeQL
3131
uses: github/codeql-action/init@v2

.github/workflows/lint.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,12 @@ jobs:
1313
lint:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/[email protected]
17-
18-
# check the node version from the .node-version file
19-
- name: fetch node version
20-
id: node-version
21-
run: |
22-
version=$(cat .node-version)
23-
echo "version=${version}" >> $GITHUB_OUTPUT
16+
- uses: actions/checkout@v3
2417

2518
- name: setup node
26-
uses: actions/[email protected]
19+
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # pin@v3.6.0
2720
with:
28-
node-version: ${{ steps.node-version.outputs.version }}
21+
node-version-file: .node-version
2922
cache: 'npm'
3023

3124
- name: install dependencies

.github/workflows/lock-sample.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
# Need to checkout for testing the Action in this repo
18-
- uses: actions/checkout@v3.5.0
18+
- uses: actions/checkout@v3
1919

2020
# Lock
2121
- uses: ./

.github/workflows/package-check.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@ on:
44
push:
55
branches:
66
- main
7-
paths-ignore:
8-
- "**.md"
97
pull_request:
10-
paths-ignore:
11-
- "**.md"
128
workflow_dispatch:
139

1410
permissions:
@@ -19,19 +15,12 @@ jobs:
1915
runs-on: ubuntu-latest
2016

2117
steps:
22-
- uses: actions/[email protected]
23-
24-
# check the node version from the .node-version file
25-
- name: fetch node version
26-
id: node-version
27-
run: |
28-
version=$(cat .node-version)
29-
echo "version=${version}" >> $GITHUB_OUTPUT
18+
- uses: actions/checkout@v3
3019

3120
- name: setup node
32-
uses: actions/[email protected]
21+
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # pin@v3.6.0
3322
with:
34-
node-version: ${{ steps.node-version.outputs.version }}
23+
node-version-file: .node-version
3524
cache: 'npm'
3625

3726
- name: install dependencies

.github/workflows/test.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,12 @@ jobs:
1313
test:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/[email protected]
17-
18-
# check the node version from the .node-version file
19-
- name: fetch node version
20-
id: node-version
21-
run: |
22-
version=$(cat .node-version)
23-
echo "version=${version}" >> $GITHUB_OUTPUT
16+
- uses: actions/checkout@v3
2417

2518
- name: setup node
26-
uses: actions/[email protected]
19+
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # pin@v3.6.0
2720
with:
28-
node-version: ${{ steps.node-version.outputs.version }}
21+
node-version-file: .node-version
2922
cache: 'npm'
3023

3124
- name: install dependencies

.github/workflows/unlock-sample.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
# Need to checkout for testing the Action in this repo
14-
- uses: actions/checkout@v3.5.0
14+
- uses: actions/checkout@v3
1515

1616
# Lock
1717
- uses: ./

0 commit comments

Comments
 (0)