Skip to content

Commit

Permalink
Enahcne: github actions (#570)
Browse files Browse the repository at this point in the history
Co-authored-by: Jonghakseo <[email protected]>
  • Loading branch information
Jonghakseo and Jonghakseo authored Jul 14, 2024
1 parent eedf424 commit d17289b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 21 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/build-zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,17 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"

- uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.OS }}-build-${{ hashFiles('**/pnpm-lock.yaml') }}

- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: pnpm

- run: pnpm install --frozen-lockfile
- run: pnpm install --frozen-lockfile --prefer-offline

- run: pnpm build

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: dist/*
12 changes: 5 additions & 7 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,12 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"

- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: pnpm

- run: pnpm install --frozen-lockfile
- run: pnpm install --frozen-lockfile --prefer-offline

- run: pnpm lint

0 comments on commit d17289b

Please sign in to comment.