Skip to content

Commit 1d75856

Browse files
committed
update actions workflows
1 parent 6eec59f commit 1d75856

File tree

5 files changed

+10
-31
lines changed

5 files changed

+10
-31
lines changed

.github/workflows/actions-config-validation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
actions-config-validation:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v3.5.0
17+
- uses: actions/checkout@v3
1818

1919
- name: actions-config-validation
2020
uses: GrantBirki/json-yaml-validate@9a228501b1e80369c582764187fbefdc2f7fbac1 # [email protected]

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
steps:
2828
- name: checkout
29-
uses: actions/checkout@v3.5.0
29+
uses: actions/checkout@v3
3030

3131
# Initializes the CodeQL tools for scanning.
3232
- name: Initialize CodeQL

.github/workflows/lint.yml

Lines changed: 2 additions & 9 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
2619
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # [email protected]
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/package-check.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,21 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/[email protected]
16-
17-
# check the node version from the .node-version file
18-
- name: fetch node version
19-
id: node-version
20-
run: |
21-
version=$(cat .node-version)
22-
echo "version=${version}" >> $GITHUB_OUTPUT
15+
- uses: actions/checkout@v3
2316

2417
- name: setup node
2518
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # [email protected]
2619
with:
27-
node-version: ${{ steps.node-version.outputs.version }}
20+
node-version-file: .node-version
2821
cache: 'npm'
2922

3023
- name: install dependencies
3124
run: npm ci
3225

33-
- name: Rebuild the dist/ directory
26+
- name: rebuild the dist/ directory
3427
run: npm run bundle
3528

36-
- name: Compare the expected and actual dist/ directories
29+
- name: compare the expected and actual dist/ directories
3730
run: |
3831
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
3932
echo "Detected uncommitted changes after build. See status below:"

.github/workflows/test.yml

Lines changed: 2 additions & 9 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
2619
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # [email protected]
2720
with:
28-
node-version: ${{ steps.node-version.outputs.version }}
21+
node-version-file: .node-version
2922
cache: 'npm'
3023

3124
- name: install dependencies

0 commit comments

Comments
 (0)