Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DEV-11947] Switch theme-kit-js to pnpm #454

Closed

Conversation

fgyimah
Copy link
Contributor

@fgyimah fgyimah commented Nov 13, 2023

No description provided.

@fgyimah fgyimah added the enhancement New feature or request label Nov 13, 2023
@fgyimah fgyimah self-assigned this Nov 13, 2023
@fgyimah fgyimah marked this pull request as draft November 13, 2023 11:46
Comment on lines +19 to +37
- uses: pnpm/action-setup@v2
name: Install PNPM
id: pnpm-install
with:
path: "**/node_modules"
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV

- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
${{ runner.os }}-pnpm-store-
Copy link
Contributor

Choose a reason for hiding this comment

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

We have a reusable Github action to reduce repetitive code in such scenarios:

https://github.com/prezly/setup-github-actions/

@@ -0,0 +1,16622 @@
lockfileVersion: '6.0'
Copy link
Contributor

@e1himself e1himself Nov 14, 2023

Choose a reason for hiding this comment

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

I suggest to ignore this file and not commit it to the repo.

The reasoning I'm basing this suggestion on can be found here:

@fgyimah fgyimah closed this Nov 14, 2023
@e1himself e1himself deleted the feature/dev-11947-switch-theme-kit-nextjs-to-pnpm branch November 14, 2023 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants