Skip to content

Commit

Permalink
build: Use action from relative-ci/.github
Browse files Browse the repository at this point in the history
  • Loading branch information
vio committed Jan 9, 2025
1 parent c8ef150 commit 9e8b882
Showing 1 changed file with 10 additions and 81 deletions.
91 changes: 10 additions & 81 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,8 @@ jobs:
steps:
- uses: actions/checkout@v4.2.2

# 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/setup-node@v4.1.0
with:
node-version-file: ".nvmrc"
cache: ${{ steps.cache.outputs.PACKAGE }}

- name: Install dependencies
run: npm ci
- name: Setup
uses: "relative-ci/.github/actions/setup@main"

- name: Build
run: npm run build
Expand Down Expand Up @@ -72,21 +60,8 @@ jobs:
steps:
- uses: actions/checkout@v4.2.2

# 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/setup-node@v4.1.0
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
uses: "relative-ci/.github/actions/setup@main"

- name: Download build files
uses: actions/download-artifact@v4.1.8
Expand All @@ -103,21 +78,8 @@ jobs:
steps:
- uses: actions/checkout@v4.2.2

# 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/setup-node@v4.1.0
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
uses: "relative-ci/.github/actions/setup@main"

- name: Download build files
uses: actions/download-artifact@v4.1.8
Expand All @@ -134,21 +96,8 @@ jobs:
steps:
- uses: actions/checkout@v4.2.2

# 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/setup-node@v4.1.0
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
uses: "relative-ci/.github/actions/setup@main"

- name: Download build files
uses: actions/download-artifact@v4.1.8
Expand Down Expand Up @@ -176,12 +125,6 @@ jobs:
steps:
- uses: actions/checkout@v4.2.2

# 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/setup-node@v4.1.0
with:
Expand Down Expand Up @@ -331,22 +274,8 @@ jobs:
steps:
- uses: actions/checkout@v4.2.2

# 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/setup-node@v4.1.0
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
uses: "relative-ci/.github/actions/setup@main"

- name: Download build
uses: actions/download-artifact@v4.1.8
Expand Down

0 comments on commit 9e8b882

Please sign in to comment.