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 7916644 commit 3a0bd2d
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,27 @@ jobs:
code-quality:
name: Lint, Format, and Type Check
runs-on: ubuntu-latest
permissions:
contents: read
packages: read

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://npm.pkg.github.com'
scope: '@renegade-fi'

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

- name: Install dependencies
run: |
echo "registry=https://registry.npmjs.org" > .npmrc
echo "" >> .npmrc
echo "# Default for @renegade-fi packages" >> .npmrc
echo "@renegade-fi:registry=https://registry.npmjs.org" >> .npmrc
echo "" >> .npmrc
echo "# Specific for @renegade-fi/tradingview-charts" >> .npmrc
echo "//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}" >> .npmrc
echo "//npm.pkg.github.com/:@renegade-fi:tradingview-charts" >> .npmrc
pnpm install --frozen-lockfile
run: pnpm install --frozen-lockfile
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- run: pnpm run lint
- run: pnpm run format -- --check
Expand Down

0 comments on commit 3a0bd2d

Please sign in to comment.