Skip to content

Commit

Permalink
clean up config
Browse files Browse the repository at this point in the history
  • Loading branch information
popeindustries committed Nov 17, 2023
1 parent ddef6f8 commit 75b7850
Showing 1 changed file with 5 additions and 21 deletions.
26 changes: 5 additions & 21 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ env:
HUSKY: 0 # Bypass husky commit hook for CI

jobs:
publish:
build_deploy:
timeout-minutes: 5
runs-on: ubuntu-latest
strategy:
Expand All @@ -22,16 +22,8 @@ jobs:
with:
fetch-depth: 1

- name: 'Cache pnpm modules'
uses: actions/cache@v3
with:
path: ${{ env.PNPM_CACHE_FOLDER }}
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: 'Install pnpm 8'
uses: pnpm/action-setup@v2.2.2
- name: 'Install pnpm'
uses: pnpm/action-setup@v2.2.4
with:
version: 8.x

Expand All @@ -41,19 +33,11 @@ jobs:
node-version: ${{ matrix.node }}
cache: 'pnpm'

- name: 'Set up npm credentials'
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: 'Configure pnpm'
run: pnpm config set store-dir $PNPM_CACHE_FOLDER

- name: 'Install dependencies'
run: pnpm --frozen-lockfile install

- name: 'Build'
run: pnpm run clean && pnpm run build
run: pnpm run build

- name: 'Test'
run: pnpm test
run: pnpm run test

0 comments on commit 75b7850

Please sign in to comment.