Skip to content

Commit

Permalink
build: apply yarn berry pnp and zero-install (#23)
Browse files Browse the repository at this point in the history
* build: apply yarn pnp

* chore: editor support

* chore: downgrade typescript to 4.9.3 for yarn berry pnp editor support

See: yarnpkg/berry#5125 (comment)

* chore: add missing deps

* build: apply yarn berry zero-install

* ci: re-add yarn installation step

* ci: change install option frozen-lockfile to immutable

* ci: apply immutable-cache option

* chore: add missing deps @next/swc-linux-x64-gnu
  • Loading branch information
taehwanno committed Dec 20, 2022
1 parent 4d82b09 commit 82d56f3
Show file tree
Hide file tree
Showing 339 changed files with 16,800 additions and 22 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/main.yml
Expand Up @@ -20,21 +20,16 @@ jobs:
node-version-file: '.nvmrc'
registry-url: https://npm.pkg.github.com/

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "name=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT

- uses: actions/cache@v3
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
key: ${{ runner.os }}-nextjs-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-
${{ runner.os }}-nextjs-
- name: Install dependencies
run: yarn install --frozen-lockfile
run: yarn install --immutable --immutable-cache

- name: Format
run: yarn format:check
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Expand Up @@ -37,9 +37,9 @@ yarn-error.log*
public/feed.xml
public/sitemap.xml

# yarn (not using zero-install)
.pnp.*
# yarn (using zero-install)
.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
Expand Down
14,160 changes: 14,160 additions & 0 deletions .pnp.cjs

Large diffs are not rendered by default.

1 comment on commit 82d56f3

@vercel
Copy link

@vercel vercel bot commented on 82d56f3 Dec 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.