Skip to content

Commit 87c4d96

Browse files
committed
Update setup-node and checkout actions version
1 parent 06abb62 commit 87c4d96

18 files changed

+149
-148
lines changed

.github/workflows/actions/get-core-dependencies/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ runs:
66
# this overrides previous versions of the node runtime that was set.
77
# jobs that need a different version of the Node runtime should explicitly
88
# set their node version after running this step
9-
- name: Use Node Version from Volta
10-
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
9+
- name: 🟢 Use Node Version from Volta
10+
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
1111
with:
1212
node-version-file: './package.json'
1313
cache: 'npm'
1414

15-
- name: Install Dependencies
15+
- name: 🕸️ Install Dependencies
1616
run: |
1717
npm ci \
1818
&& npm run install.jest

.github/workflows/actions/publish-npm/action.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,29 @@ inputs:
1010
runs:
1111
using: 'composite'
1212
steps:
13-
- name: Checkout Code
14-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
13+
- name: 📥 Checkout Code
14+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1515

16-
- name: Get Core Dependencies
16+
- name: 🕸️ Get Core Dependencies
1717
uses: ./.github/workflows/actions/get-core-dependencies
1818

19-
- name: Download Build Archive
19+
- name: 📥 Download Build Archive
2020
uses: ./.github/workflows/actions/download-archive
2121
with:
2222
name: stencil-core
2323
path: .
2424
filename: stencil-core-build.zip
2525

26-
- name: Set Version
26+
- name: 🏷️ Set Version
2727
run: npm version --no-git-tag-version ${{ inputs.version }}
2828
shell: bash
2929

30-
- name: Prepare NPM Token
30+
- name: 📦 Prepare NPM Token
3131
run: echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > .npmrc
3232
shell: bash
3333
env:
3434
NPM_TOKEN: ${{ inputs.token }}
3535

36-
- name: Publish to NPM
36+
- name: 📤 Publish to NPM
3737
run: npm publish --tag ${{ inputs.tag }} --provenance
3838
shell: bash

.github/workflows/build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,25 @@ jobs:
1616
os: ['ubuntu-22.04', 'windows-latest']
1717
runs-on: ${{ matrix.os }}
1818
steps:
19-
- name: Checkout Code
20-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
19+
- name: 📥 Checkout Code
20+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2121

22-
- name: Get Core Dependencies
22+
- name: 🕸️ Get Core Dependencies
2323
uses: ./.github/workflows/actions/get-core-dependencies
2424

25-
- name: Core Build
25+
- name: 🏗️ Core Build
2626
run: npm run build -- --ci
2727
shell: bash
2828

29-
- name: Validate Build
29+
- name: 🧪 Validate Build
3030
run: npm run test.dist
3131
shell: bash
3232

33-
- name: Validate Testing
33+
- name: 🧪 Validate Testing
3434
run: npm run test.testing
3535
shell: bash
3636

37-
- name: Upload Build Artifacts
37+
- name: 📤 Upload Build Artifacts
3838
if: ${{ matrix.os == 'ubuntu-22.04' }}
3939
uses: ./.github/workflows/actions/upload-archive
4040
with:

.github/workflows/ci.yml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,37 +9,38 @@ jobs:
99
name: Core Jest
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: Checkout
13-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
14-
- name: Setup Node
15-
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
12+
- name: 📥 Checkout Code
13+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
14+
15+
- name: 🟢 Use Node
16+
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
1617
with:
1718
node-version: 20
1819
cache: 'npm'
19-
- name: Install
20+
- name: 🕸️ Install
2021
run: npm ci
21-
- name: Build (generate testing artifacts)
22+
- name: 🏗️ Build (generate testing artifacts)
2223
run: npm run build -- --ci
23-
- name: Run Jest (core)
24+
- name: 🧪 Run Jest (core)
2425
run: npm run test.jest
2526

2627
test-bundler:
2728
name: Bundler Jest
2829
runs-on: ubuntu-latest
2930
needs: test-core
3031
steps:
31-
- name: Checkout
32-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
33-
- name: Setup Node
34-
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
32+
- name: 📥 Checkout Code
33+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
34+
- name: 🟢 Setup Node
35+
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
3536
with:
3637
node-version: 20
3738
cache: 'npm'
38-
- name: Install
39+
- name: 🕸️ Install
3940
run: npm ci
40-
- name: Build core (required by bundler job)
41+
- name: 🏗️ Build core (required by bundler job)
4142
run: npm run build -- --ci
42-
- name: Build bundler artifacts
43+
- name: 🏗️ Build bundler artifacts
4344
run: npm run --prefix test/bundler build
44-
- name: Run Bundler tests
45+
- name: 🧪 Run Bundler tests
4546
run: npm run test.bundler

.github/workflows/create-production-pr.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,47 +32,47 @@ jobs:
3232
pull-requests: write
3333
steps:
3434
# Log the input from GitHub Actions for easy traceability
35-
- name: Log GitHub Input
35+
- name: 🔏Log GitHub Input
3636
run: |
3737
echo "Version: ${{ inputs.version }}"
3838
shell: bash
3939

40-
- name: Checkout Code
41-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
40+
- name: 📥 Checkout Code
41+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
4242
with:
4343
# A depth of 0 gets the entire git history, which we'll want for things like checking all git history/tags.
4444
# We need git history to generate the changelog; however, we don't know how deep to go.
4545
# Since publishing is a one-off activity, just get everything.
4646
fetch-depth: 0
4747
ref: ${{ inputs.base }}
4848

49-
- name: Get Core Dependencies
49+
- name: 🕸️ Get Core Dependencies
5050
uses: ./.github/workflows/actions/get-core-dependencies
5151

5252
# TODO(STENCIL-927): Backport changes to the v3 branch
53-
- name: Run Publish Preparation Script
53+
- name: 📦 Run Publish Preparation Script
5454
run: npm run release.ci.prepare -- --version ${{ inputs.version }}
5555
shell: bash
5656

57-
- name: Log Generated Changes
57+
- name: 📝 Log Generated Changes
5858
run: git --no-pager diff
5959
shell: bash
6060

61-
- name: Generate Version String and Branch Name
61+
- name: 🏷️ Generate Version String and Branch Name
6262
id: name_gen
6363
run: |
6464
VERSION_STR=$(jq '.version' package.json | sed s/\"//g)
6565
echo "VERSION_STR=$VERSION_STR" >> "$GITHUB_OUTPUT"
6666
echo "BRANCH_NAME=release/$VERSION_STR-run-${{ github.run_number }}-${{ github.run_attempt }}" >> "$GITHUB_OUTPUT"
6767
shell: bash
6868

69-
- name: Print Version String and Branch Name
69+
- name: 🖨️ Print Version String and Branch Name
7070
run: |
7171
echo Version: ${{ steps.name_gen.outputs.VERSION_STR }}
7272
echo Branch Name: ${{ steps.name_gen.outputs.BRANCH_NAME }}
7373
shell: bash
7474

75-
- name: Create the Pull Request
75+
- name: 📤 Create the Pull Request
7676
uses: peter-evans/create-pull-request@6d6857d36972b65feb161a90e484f2984215f83e # v6.0.5
7777
with:
7878
# create a new pull request using the specified base branch

.github/workflows/lint-and-format.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ jobs:
1414
name: Check
1515
runs-on: 'ubuntu-22.04'
1616
steps:
17-
- name: Checkout Code
18-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
17+
- name: 📥 Checkout Code
18+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1919

20-
- name: Get Core Dependencies
20+
- name: 🕸️ Get Core Dependencies
2121
uses: ./.github/workflows/actions/get-core-dependencies
2222

23-
- name: ESLint
23+
- name: 🖌️ ESLint
2424
run: npm run lint
2525

26-
- name: Prettier Check
26+
- name: 🖌️ Prettier Check
2727
run: npm run prettier.dry-run
2828
shell: bash
2929

30-
- name: Spellcheck
30+
- name: 📚 Spellcheck
3131
run: npm run spellcheck

.github/workflows/release-dev.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,20 @@ jobs:
2525
outputs:
2626
dev-version: ${{ steps.get-dev-version.outputs.DEV_VERSION }}
2727
steps:
28-
- name: Checkout Code
29-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
28+
- name: 📥 Checkout Code
29+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3030

31-
- name: Get Core Dependencies
31+
- name: 🕸️ Get Core Dependencies
3232
uses: ./.github/workflows/actions/get-core-dependencies
3333

34-
- name: Download Build Archive
34+
- name: 📥 Download Build Archive
3535
uses: ./.github/workflows/actions/download-archive
3636
with:
3737
name: stencil-core
3838
path: .
3939
filename: stencil-core-build.zip
4040

41-
- name: Get Version
41+
- name: 🏷️ Get Version
4242
id: get-dev-version
4343
run: |
4444
# A unique string to publish Stencil under
@@ -56,15 +56,15 @@ jobs:
5656
shell: bash
5757

5858
release-stencil-dev-build:
59-
name: Publish Dev Build
59+
name: 📤 Publish Dev Build
6060
needs: [get-dev-version, build_core]
6161
runs-on: ubuntu-22.04
6262
permissions:
6363
contents: read
6464
id-token: write
6565
steps:
66-
- name: Checkout Code
67-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
66+
- name: 📥 Checkout Code
67+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
6868
- uses: ./.github/workflows/actions/publish-npm
6969
with:
7070
tag: dev

.github/workflows/release-nightly.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,20 @@ jobs:
2424
outputs:
2525
nightly-version: ${{ steps.get-nightly-version.outputs.NIGHTLY_VERSION }}
2626
steps:
27-
- name: Checkout Code
28-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
27+
- name: 📥 Checkout Code
28+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2929

30-
- name: Get Core Dependencies
30+
- name: 🕸️ Get Core Dependencies
3131
uses: ./.github/workflows/actions/get-core-dependencies
3232

33-
- name: Download Build Archive
33+
- name: 📥 Download Build Archive
3434
uses: ./.github/workflows/actions/download-archive
3535
with:
3636
name: stencil-core
3737
path: .
3838
filename: stencil-core-build.zip
3939

40-
- name: Get Version
40+
- name: 🏷️ Get Version
4141
id: get-nightly-version
4242
run: |
4343
# A unique string to publish Stencil under
@@ -58,15 +58,15 @@ jobs:
5858
shell: bash
5959

6060
release-stencil-nightly-build:
61-
name: Publish Nightly Build
61+
name: 📤 Publish Nightly Build
6262
needs: [get-nightly-version, build_core]
6363
runs-on: ubuntu-22.04
6464
permissions:
6565
contents: read
6666
id-token: write
6767
steps:
68-
- name: Checkout Code
69-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
68+
- name: 📥 Checkout Code
69+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
7070
- uses: ./.github/workflows/actions/publish-npm
7171
with:
7272
tag: nightly

.github/workflows/release-production.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,25 +42,25 @@ jobs:
4242
shell: bash
4343
if: ${{ inputs.base != 'main' && inputs.tag == 'latest' }}
4444

45-
- name: Checkout Code
46-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
45+
- name: 📥 Checkout Code
46+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
4747
with:
4848
# A depth of 0 gets the entire git history, which we'll want for things like checking all git history/tags.
4949
# We need git history to generate the changelog; however, we don't know how deep to go.
5050
# Since publishing is a one-off activity, just get everything.
5151
fetch-depth: 0
5252
ref: ${{ inputs.base }}
5353

54-
- name: Get Core Dependencies
54+
- name: 🕸️ Get Core Dependencies
5555
uses: ./.github/workflows/actions/get-core-dependencies
5656

57-
- name: Prepare NPM Token
57+
- name: 📦 Prepare NPM Token
5858
run: echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > .npmrc
5959
shell: bash
6060
env:
6161
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
6262

63-
- name: Run Publish Scripts
63+
- name: 📦 Run Publish Scripts
6464
# pass the generated version number instead of the input, since we've already incremented it in the prerelease
6565
# step
6666
run: npm run release.ci -- --tag ${{ inputs.tag }}

.github/workflows/test-analysis.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,28 @@ jobs:
1818
os: ['ubuntu-latest', 'windows-latest']
1919
runs-on: ${{ matrix.os }}
2020
steps:
21-
- name: Checkout Code
22-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
21+
- name: 📥 Checkout Code
22+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2323

24-
- name: Get Core Dependencies
24+
- name: 🕸️ Get Core Dependencies
2525
uses: ./.github/workflows/actions/get-core-dependencies
2626

27-
- name: Use Node ${{ matrix.node }}
28-
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
27+
- name: 🟢 Use Node ${{ matrix.node }}
28+
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
2929
with:
3030
node-version: ${{ matrix.node }}
3131
cache: 'npm'
3232

33-
- name: Download Build Archive
33+
- name: 📥 Download Build Archive
3434
uses: ./.github/workflows/actions/download-archive
3535
with:
3636
name: stencil-core
3737
path: .
3838
filename: stencil-core-build.zip
3939

40-
- name: Analysis Tests
40+
- name: 🧪 Analysis Tests
4141
run: npm run test.analysis
4242
shell: bash
4343

44-
- name: Check Git Context
44+
- name: 📦 Check Git Context
4545
uses: ./.github/workflows/actions/check-git-context

0 commit comments

Comments
 (0)