Skip to content

Commit

Permalink
chore: setup pnpm with reusable organization composite (#2)
Browse files Browse the repository at this point in the history
* chore: setup pnpm with reusable organization composite
  • Loading branch information
puria authored May 7, 2024
1 parent c95ab96 commit f31ff36
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 40 deletions.
44 changes: 4 additions & 40 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ on:
- main
pull_request:

defaults:
run:
shell: bash

permissions:
contents: read # for checkout@v4

Expand All @@ -17,18 +13,7 @@ jobs:
name: 🧪
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: pnpm/action-setup@v3
with:
version: 9
- run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-store-
- run: pnpm i
- uses: dyne/pnpm@v1
- run: npx playwright install --with-deps
- run: pnpm t
- uses: actions/upload-artifact@v4
Expand All @@ -49,19 +34,8 @@ jobs:
pull-requests: write
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: pnpm/action-setup@v3
with:
version: 9
- run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-store-
- run: pnpm i
- run: npx semantic-release
- uses: dyne/pnpm@v1
- run: pnpm semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand All @@ -75,17 +49,7 @@ jobs:
pages: write
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: pnpm/action-setup@v3
with:
version: 9
- run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-store-
- uses: dyne/pnpm@v1
- uses: bitovi/github-actions-storybook-to-github-pages@v1
with:
install_command: pnpm i
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
"npm-run-all": "^4.1.5",
"puppeteer": "^22.7.1",
"rollup-plugin-node-polyfills": "^0.2.1",
"semantic-release": "^23.0.8",
"stencil-tailwind-plugin": "^1.8.0",
"storybook": "^8.0.8",
"tailwindcss": "^3.4.3",
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f31ff36

Please sign in to comment.