Skip to content

Commit

Permalink
Breaking out npm install into action
Browse files Browse the repository at this point in the history
  • Loading branch information
rsoberano-ld committed Dec 6, 2023
1 parent a77957a commit 9caf009
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 36 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/manual-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ jobs:
with:
node-version: 16.x
registry-url: 'https://registry.npmjs.org'
- name: 'Install latest npm to support provenance publishing'
run: |
npm install -g npm
- uses: ./actions/install-latest-npm
- name: 'Setup Redis'
if: ${{ inputs.workspace_path == 'packages/store/node-server-sdk-redis' }}
run: |
Expand Down
44 changes: 11 additions & 33 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ jobs:
with:
node-version: 16.x
registry-url: 'https://registry.npmjs.org'
- name: 'Install latest npm to support provenance publishing'
run: |
npm install -g npm
- uses: ./actions/install-latest-npm
- id: release-common
name: Full release of packages/shared/common
uses: ./actions/full-release
Expand All @@ -63,9 +61,7 @@ jobs:
with:
node-version: 16.x
registry-url: 'https://registry.npmjs.org'
- name: 'Install latest npm to support provenance publishing'
run: |
npm install -g npm
- uses: ./actions/install-latest-npm
- id: release-common
name: Full release of packages/shared/sdk-server
uses: ./actions/full-release
Expand All @@ -86,9 +82,7 @@ jobs:
with:
node-version: 16.x
registry-url: 'https://registry.npmjs.org'
- name: 'Install latest npm to support provenance publishing'
run: |
npm install -g npm
- uses: ./actions/install-latest-npm
- id: release-common
name: Full release of packages/shared/sdk-server-edge
uses: ./actions/full-release
Expand All @@ -109,9 +103,7 @@ jobs:
with:
node-version: 16.x
registry-url: 'https://registry.npmjs.org'
- name: 'Install latest npm to support provenance publishing'
run: |
npm install -g npm
- uses: ./actions/install-latest-npm
- id: release-common
name: Full release of packages/shared/akamai-edgeworker-sdk
uses: ./actions/full-release
Expand All @@ -132,9 +124,7 @@ jobs:
with:
node-version: 16.x
registry-url: 'https://registry.npmjs.org'
- name: 'Install latest npm to support provenance publishing'
run: |
npm install -g npm
- uses: ./actions/install-latest-npm
- id: release-common
name: Full release of packages/sdk/cloudflare
uses: ./actions/full-release
Expand All @@ -155,9 +145,7 @@ jobs:
with:
node-version: 16.x
registry-url: 'https://registry.npmjs.org'
- name: 'Install latest npm to support provenance publishing'
run: |
npm install -g npm
- uses: ./actions/install-latest-npm
- id: release-common
name: Full release of packages/sdk/server-node
uses: ./actions/full-release
Expand All @@ -178,9 +166,7 @@ jobs:
with:
node-version: 16.x
registry-url: 'https://registry.npmjs.org'
- name: 'Install latest npm to support provenance publishing'
run: |
npm install -g npm
- uses: ./actions/install-latest-npm
- id: release-common
name: Full release of packages/sdk/vercel
uses: ./actions/full-release
Expand All @@ -201,9 +187,7 @@ jobs:
with:
node-version: 16.x
registry-url: 'https://registry.npmjs.org'
- name: 'Install latest npm to support provenance publishing'
run: |
npm install -g npm
- uses: ./actions/install-latest-npm
- id: release-common
name: Full release of packages/sdk/akamai-base
uses: ./actions/full-release
Expand All @@ -224,9 +208,7 @@ jobs:
with:
node-version: 16.x
registry-url: 'https://registry.npmjs.org'
- name: 'Install latest npm to support provenance publishing'
run: |
npm install -g npm
- uses: ./actions/install-latest-npm
- id: release-common
name: Full release of packages/sdk/akamai-edgekv
uses: ./actions/full-release
Expand All @@ -247,9 +229,7 @@ jobs:
with:
node-version: 16.x
registry-url: 'https://registry.npmjs.org'
- name: 'Install latest npm to support provenance publishing'
run: |
npm install -g npm
- uses: ./actions/install-latest-npm
- run: |
sudo apt-get update
sudo apt-get install redis-server
Expand All @@ -274,9 +254,7 @@ jobs:
with:
node-version: 16.x
registry-url: 'https://registry.npmjs.org'
- name: 'Install latest npm to support provenance publishing'
run: |
npm install -g npm
- uses: ./actions/install-latest-npm
- run: |
sudo docker run -d -p 8000:8000 amazon/dynamodb-local
- id: release-common
Expand Down
8 changes: 8 additions & 0 deletions actions/install-latest-npm/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Install latest npm
description: Install the latest version of the npm CLI utility
runs:
using: composite
steps:
- name: 'Install latest npm to support provenance publishing'
run: |
npm install -g npm

0 comments on commit 9caf009

Please sign in to comment.