Skip to content

Commit

Permalink
Revert "split out node setup and build for reusability"
Browse files Browse the repository at this point in the history
This reverts commit 3ca84ae.
  • Loading branch information
ethangardner committed Dec 19, 2024
1 parent 3ca84ae commit c4c99ba
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 53 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/_performance-budget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,45 @@ jobs:
env:
CI_JOB_NUMBER: 1
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Read node version from `.nvmrc` file
id: nvmrc
shell: bash
run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc)

- name: Install required node.js version
uses: actions/setup-node@v4
with:
node-version: ${{ steps.nvmrc.outputs.NODE_VERSION }}

- name: Install pnpm
uses: pnpm/action-setup@v4
id: pnpm-install
with:
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

- uses: andresz1/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
49 changes: 0 additions & 49 deletions .github/workflows/_setup-node-and-build.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .github/workflows/monitor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,5 @@ on:
pull_request:

jobs:
setup-and-build:
uses: ./.github/workflows/_setup-node-and-build.yml

performance-budget:
needs: setup-and-build
uses: ./.github/workflows/_performance-budget.yml

0 comments on commit c4c99ba

Please sign in to comment.