-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #88 from PiJaAB/feature/pnpm
Updated project to pnpm, updated all dependencies
- Loading branch information
Showing
10 changed files
with
2,775 additions
and
2,666 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,34 +11,24 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout branch | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node.js for use with actions | ||
uses: actions/setup-node@v1 | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
node-version: 12.x | ||
|
||
- name: Setup caching | ||
id: yarn-cache-dir-path | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- uses: actions/cache@v2 | ||
version: 8.x.x | ||
- name: Use Node.js 18 | ||
uses: actions/setup-node@v3 | ||
with: | ||
path: ${{ github.workspace }}/.next/cache | ||
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }} | ||
node-version: 18.x | ||
cache: 'pnpm' | ||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile --prefer-offline | ||
run: pnpm install --frozen-lockfile --prefer-offline | ||
env: | ||
CI: true | ||
- name: Build dist | ||
run: yarn build | ||
run: pnpm build | ||
- name: Cleanup folder structure | ||
run: rm -rf src prettier.config.js tsconfig.eslint.json tsconfig.json prettier.config.js yarn.lock .eslintrc.js .prettierignore .gitignore .github | ||
run: rm -rf src prettier.config.js tsconfig.eslint.json tsconfig.json prettier.config.js pnpm-lock.yaml .eslintrc.js .prettierignore .gitignore .github | ||
- name: Run deploy script | ||
run: | | ||
git config user.name "PiJa Deploy" && git config user.email "[email protected]" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Node.js CI | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- develop | ||
- main | ||
|
||
jobs: | ||
build: | ||
name: Build and test | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8.x.x | ||
- name: Use Node.js 18 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
cache: 'pnpm' | ||
- name: Install dependencies | ||
run: pnpm install --prefer-offline --frozen-lockfile | ||
env: | ||
CI: true | ||
- run: pnpm run lint | ||
env: | ||
CI: true | ||
- run: pnpm run build | ||
env: | ||
CI: true | ||
timeout-minutes: 20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.