-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4922 from relative-ci/use-shared-action
build: Use action from relative-ci/.github
- Loading branch information
Showing
1 changed file
with
25 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,20 +13,8 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
|
||
# Cache packages when the branch is not update-dependencies or dependabot/* | ||
- name: Resolve caching | ||
id: cache | ||
if: ${{ github.ref_name != 'update-dependencies' && !startsWith(github.ref_name, 'dependabot/') }} | ||
run: echo "PACKAGE=npm" >> $GITHUB_OUTPUT | ||
|
||
- name: Use Node.js | ||
uses: actions/[email protected] | ||
with: | ||
node-version-file: ".nvmrc" | ||
cache: ${{ steps.cache.outputs.PACKAGE }} | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
- name: Setup node & npm | ||
uses: relative-ci/.github/actions/setup-node-npm@main | ||
|
||
- name: Build | ||
run: npm run build | ||
|
@@ -72,21 +60,8 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
|
||
# Cache packages when the branch is not update-dependencies or dependabot/* | ||
- name: Resolve caching | ||
id: cache | ||
if: ${{ github.ref_name != 'update-dependencies' && !startsWith(github.ref_name, 'dependabot/') }} | ||
run: echo "PACKAGE=npm" >> $GITHUB_OUTPUT | ||
|
||
- name: Use Node.js | ||
uses: actions/[email protected] | ||
with: | ||
node-version-file: ".nvmrc" | ||
cache: ${{ steps.cache.outputs.PACKAGE }} | ||
|
||
# Workaround npm/nx optional install issue - https://github.com/nrwl/nx/issues/15452 | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Setup node & npm | ||
uses: relative-ci/.github/actions/setup-node-npm@main | ||
|
||
- name: Download build files | ||
uses: actions/[email protected] | ||
|
@@ -103,21 +78,8 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
|
||
# Cache packages when the branch is not update-dependencies or dependabot/* | ||
- name: Resolve caching | ||
id: cache | ||
if: ${{ github.ref_name != 'update-dependencies' && !startsWith(github.ref_name, 'dependabot/') }} | ||
run: echo "PACKAGE=npm" >> $GITHUB_OUTPUT | ||
|
||
- name: Use Node.js | ||
uses: actions/[email protected] | ||
with: | ||
node-version-file: ".nvmrc" | ||
cache: ${{ steps.cache.outputs.PACKAGE }} | ||
|
||
# Workaround npm/nx optional install issue - https://github.com/nrwl/nx/issues/15452 | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Setup node & npm | ||
uses: relative-ci/.github/actions/setup-node-npm@main | ||
|
||
- name: Download build files | ||
uses: actions/[email protected] | ||
|
@@ -134,21 +96,8 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
|
||
# Cache packages when the branch is not update-dependencies or dependabot/* | ||
- name: Resolve caching | ||
id: cache | ||
if: ${{ github.ref_name != 'update-dependencies' && !startsWith(github.ref_name, 'dependabot/') }} | ||
run: echo "PACKAGE=npm" >> $GITHUB_OUTPUT | ||
|
||
- name: Use Node.js | ||
uses: actions/[email protected] | ||
with: | ||
node-version-file: ".nvmrc" | ||
cache: ${{ steps.cache.outputs.PACKAGE }} | ||
|
||
# Workaround npm/nx optional install issue - https://github.com/nrwl/nx/issues/15452 | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Setup node & npm | ||
uses: relative-ci/.github/actions/setup-node-npm@main | ||
|
||
- name: Download build files | ||
uses: actions/[email protected] | ||
|
@@ -176,17 +125,12 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
|
||
# Cache packages when the branch is not update-dependencies or dependabot/* | ||
- name: Resolve caching | ||
id: cache | ||
if: ${{ github.ref_name != 'update-dependencies' && !startsWith(github.ref_name, 'dependabot/') }} | ||
run: echo "PACKAGE=npm" >> $GITHUB_OUTPUT | ||
|
||
- name: Use Node.js | ||
uses: actions/[email protected] | ||
- name: Setup node & npm | ||
uses: relative-ci/.github/actions/setup-node-npm@main | ||
with: | ||
node-version: ${{ matrix.node }} | ||
cache: ${{ steps.cache.outputs.PACKAGE }} | ||
version: ${{ matrix.node }} | ||
cache: never | ||
install: false | ||
|
||
- name: Download build files | ||
uses: actions/[email protected] | ||
|
@@ -233,10 +177,12 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v4.1.0 | ||
- name: Setup node & npm | ||
uses: relative-ci/.github/actions/setup-node-npm@main | ||
with: | ||
node-version: ${{ matrix.node }} | ||
version: ${{ matrix.node }} | ||
cache: never | ||
install: false | ||
|
||
- name: Download build files | ||
uses: actions/[email protected] | ||
|
@@ -277,10 +223,12 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v4.1.0 | ||
- name: Setup node & npm | ||
uses: relative-ci/.github/actions/setup-node-npm@main | ||
with: | ||
node-version: ${{ matrix.node }} | ||
version: ${{ matrix.node }} | ||
cache: never | ||
install: false | ||
|
||
- name: Download build files | ||
uses: actions/[email protected] | ||
|
@@ -331,22 +279,8 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
|
||
# Cache packages when the branch is not update-dependencies or dependabot/* | ||
- name: Resolve caching | ||
id: cache | ||
if: ${{ github.ref_name != 'update-dependencies' && !startsWith(github.ref_name, 'dependabot/') }} | ||
run: echo "PACKAGE=npm" >> $GITHUB_OUTPUT | ||
|
||
- name: Use Node.js | ||
uses: actions/[email protected] | ||
with: | ||
node-version-file: ".nvmrc" | ||
cache: ${{ steps.cache.outputs.PACKAGE }} | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
# Workaround npm/nx optional install issue - https://github.com/nrwl/nx/issues/15452 | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Setup node & npm | ||
uses: relative-ci/.github/actions/setup-node-npm@main | ||
|
||
- name: Download build | ||
uses: actions/[email protected] | ||
|