Skip to content

Commit 3feba28

Browse files
dreamorosiam29d
andauthored
chore(ci): extract cached-node-modules action (aws-powertools#2876)
Co-authored-by: Alexander Schueren <[email protected]>
1 parent e542d11 commit 3feba28

8 files changed

+11
-59
lines changed

.github/actions/cached-node-modules/action.yml

-48
This file was deleted.

.github/workflows/make-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
run: |
5858
npm set "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}"
5959
- name: Setup dependencies
60-
uses: ./.github/actions/cached-node-modules
60+
uses: aws-powertools/actions/.github/actions/cached-node-modules@d406bac5563f1d8c793519a3eedfe620f6a14872
6161
- name: Publish to npm
6262
run: |
6363
NPM_CONFIG_PROVENANCE=true npx lerna publish from-package --git-head ${{ github.sha }} --yes

.github/workflows/make-version.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
node-version: "20"
2929
cache: "npm"
3030
- name: Setup dependencies
31-
uses: ./.github/actions/cached-node-modules
31+
uses: aws-powertools/actions/.github/actions/cached-node-modules@d406bac5563f1d8c793519a3eedfe620f6a14872
3232
- name: Version
3333
id: bump-version
3434
run: npx lerna version --conventional-commits --no-git-tag-version --no-push --no-commit-hooks --yes

.github/workflows/publish_layer.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
with:
4040
node-version: "20"
4141
- name: Setup dependencies
42-
uses: ./.github/actions/cached-node-modules
42+
uses: aws-powertools/actions/.github/actions/cached-node-modules@d406bac5563f1d8c793519a3eedfe620f6a14872
4343
- name: CDK build
4444
run: npm run cdk -w layers -- synth --context PowertoolsPackageVersion=${{ inputs.latest_published_version }} -o cdk.out
4545
- name: Zip output

.github/workflows/reusable-run-linting-check-and-unit-tests.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
node-version: ${{ matrix.version }}
2525
cache: "npm"
2626
- name: Setup dependencies
27-
uses: ./.github/actions/cached-node-modules
27+
uses: aws-powertools/actions/.github/actions/cached-node-modules@d406bac5563f1d8c793519a3eedfe620f6a14872
2828
with:
2929
nodeVersion: ${{ matrix.version }}
3030
- name: Run linting
@@ -71,7 +71,7 @@ jobs:
7171
node-version: 20
7272
cache: "npm"
7373
- name: Setup dependencies
74-
uses: ./.github/actions/cached-node-modules
74+
uses: aws-powertools/actions/.github/actions/cached-node-modules@d406bac5563f1d8c793519a3eedfe620f6a14872
7575
- name: Run linting
7676
run: npm run lint
7777
- name: Run tests
@@ -89,7 +89,7 @@ jobs:
8989
node-version: 20
9090
cache: "npm"
9191
- name: Setup dependencies
92-
uses: ./.github/actions/cached-node-modules
92+
uses: aws-powertools/actions/.github/actions/cached-node-modules@d406bac5563f1d8c793519a3eedfe620f6a14872
9393
- name: Run linting
9494
run: npm run lint -w layers
9595
- name: Run tests
@@ -107,7 +107,7 @@ jobs:
107107
node-version: 20
108108
cache: "npm"
109109
- name: Setup dependencies
110-
uses: ./.github/actions/cached-node-modules
110+
uses: aws-powertools/actions/.github/actions/cached-node-modules@d406bac5563f1d8c793519a3eedfe620f6a14872
111111
- name: Run linting
112112
run: npm run lint -w examples/snippets
113113
check-docs:
@@ -123,6 +123,6 @@ jobs:
123123
node-version: 20
124124
cache: "npm"
125125
- name: Setup dependencies
126-
uses: ./.github/actions/cached-node-modules
126+
uses: aws-powertools/actions/.github/actions/cached-node-modules@d406bac5563f1d8c793519a3eedfe620f6a14872
127127
- name: Run linting
128128
run: npm run lint:markdown

.github/workflows/reusable_deploy_layer_stack.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
with:
7575
node-version: "20"
7676
- name: Setup dependencies
77-
uses: ./.github/actions/cached-node-modules
77+
uses: aws-powertools/actions/.github/actions/cached-node-modules@d406bac5563f1d8c793519a3eedfe620f6a14872
7878
- name: Download artifact
7979
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
8080
with:

.github/workflows/reusable_publish_docs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
node-version: "20"
5858
cache: "npm"
5959
- name: Setup dependencies
60-
uses: ./.github/actions/cached-node-modules
60+
uses: aws-powertools/actions/.github/actions/cached-node-modules@d406bac5563f1d8c793519a3eedfe620f6a14872
6161
- name: Set up Python
6262
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
6363
with:

.github/workflows/run-e2e-tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
with:
6060
node-version: '20'
6161
- name: Setup dependencies
62-
uses: ./.github/actions/cached-node-modules
62+
uses: aws-powertools/actions/.github/actions/cached-node-modules@d406bac5563f1d8c793519a3eedfe620f6a14872
6363
with:
6464
nodeVersion: '20'
6565
- name: Setup AWS credentials

0 commit comments

Comments
 (0)