This repository has been archived by the owner on Jul 20, 2024. It is now read-only.
generated from VitorLuizC/typescript-library-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update cicd pipeline to uses pnpm and fix consumer pair (#40)
* chore: update cicd pipeline to uses pnpm and fix consumer pair * update ci action pnpm version * fix action pnpm again * fix action again
- Loading branch information
1 parent
3dfe875
commit 5e973bc
Showing
16 changed files
with
4,014 additions
and
6,327 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,32 @@ | ||
name: 'Setup' | ||
description: "Setups Node.js and npm to run GitHub Actions' jobs." | ||
description: "Setups Node.js and pnpm to run GitHub Actions' jobs." | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: 'Setup Node.js' | ||
uses: 'actions/setup-node@v4' | ||
with: | ||
node-version: '16.x' | ||
cache: 'npm' | ||
cache-dependency-path: '**/package-lock.json' | ||
node-version: 16 | ||
registry-url: 'https://registry.npmjs.org' | ||
- name: 'Setup pnpm' | ||
uses: 'pnpm/action-setup@v2' | ||
with: | ||
version: 8 | ||
run_install: false | ||
|
||
- name: 'Keep npm cache for future workflows' | ||
uses: 'actions/cache@v3' | ||
- 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: | ||
key: "${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}" | ||
path: '~/.npm' | ||
path: ${{ env.STORE_PATH }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
${{ runner.os }}-pnpm-store- | ||
- name: 'Install dependencies' | ||
run: 'npm ci' | ||
run: 'pnpm i' | ||
shell: 'bash' |
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
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
Oops, something went wrong.