Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
sehyunc committed Sep 5, 2024
1 parent e7e7476 commit ae083df
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 40 deletions.
83 changes: 44 additions & 39 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,42 +12,47 @@ jobs:
contents: read

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1

- uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'

- uses: pnpm/action-setup@v2
with:
version: 9.1.4

- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Create .npmrc
run: |
echo "registry=https://registry.npmjs.org" > .npmrc
echo "@renegade-fi:registry=https://registry.npmjs.org" >> .npmrc
echo "@renegade-fi/tradingview-charts:registry=https://npm.pkg.github.com" >> .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.PKG_GITHUB_TOKEN }}" >> .npmrc
- name: Install dependencies
run: pnpm install --frozen-lockfile
env:
NODE_AUTH_TOKEN: ${{ secrets.PKG_GITHUB_TOKEN }}

- name: Run linting, formatting check, and type checking
run: |
pnpm run lint &
pnpm prettier --check . &
pnpm run typecheck &
wait
- uses: actions/checkout@v4
with:
fetch-depth: 1

- uses: actions/setup-node@v4
with:
node-version: "20"
registry-url: "https://registry.npmjs.org"

- uses: pnpm/action-setup@v2
with:
version: 9.1.4

- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Create .npmrc
run: |
echo "registry=https://registry.npmjs.org" > .npmrc
echo "@renegade-fi:registry=https://registry.npmjs.org" >> .npmrc
echo "@renegade-fi/tradingview-charts:registry=https://npm.pkg.github.com" >> .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.PKG_GITHUB_TOKEN }}" >> .npmrc
- name: Install dependencies
run: pnpm install --frozen-lockfile
env:
NODE_AUTH_TOKEN: ${{ secrets.PKG_GITHUB_TOKEN }}

- name: Run linting, formatting check, and type checking
run: |
pnpm run lint &
pnpm prettier --check . &
pnpm run typecheck &
wait
1 change: 0 additions & 1 deletion .github/workflows/lint-and-format.yml

This file was deleted.

0 comments on commit ae083df

Please sign in to comment.