Merge pull request #6 from iamhoonse-dev/add-em-on-portfolio-app #7
This file contains hidden or 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
name: Release | |
on: | |
push: | |
branches: | |
- main | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
cache: 'pnpm' | |
- name: Restore turbo cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
.turbo | |
node_modules/.cache/turbo | |
key: ${{ runner.os }}-turbo-cache-${{ hashFiles('**/pnpm-lock.yaml', '**/pnpm-workspace.yaml') }}-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-turbo-cache-${{ hashFiles('**/pnpm-lock.yaml', '**/pnpm-workspace.yaml') }}- | |
${{ runner.os }}-turbo-cache- | |
- name: Restore node_modules cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
node_modules | |
apps/*/node_modules | |
tools/*/node_modules | |
packages/*/node_modules | |
configs/*/node_modules | |
shared/*/node_modules | |
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/pnpm-lock.yaml', '**/pnpm-workspace.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-node-modules- | |
- name: Restore dist cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
apps/*/.next | |
!apps/*/.next/cache | |
apps/*/storybook-static | |
packages/*/dist | |
configs/*/dist | |
shared/*/dist | |
key: ${{ runner.os }}-dist-${{ hashFiles('**/pnpm-lock.yaml', '**/pnpm-workspace.yaml') }}-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-dist-${{ hashFiles('**/pnpm-lock.yaml', '**/pnpm-workspace.yaml') }}- | |
${{ runner.os }}-dist- | |
- name: Install Dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Create Release Pull Request | |
uses: changesets/action@v1 | |
with: | |
version: pnpm version-packages | |
publish: pnpm publish-packages | |
commit: | | |
chore(release): 🦋 versioning packages by changesets | |
title: | | |
🦋 Versioning packages | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |