Skip to content

chore(deps): update dependency @release-it/conventional-changelog to … #91

chore(deps): update dependency @release-it/conventional-changelog to …

chore(deps): update dependency @release-it/conventional-changelog to … #91

Workflow file for this run

name: 🚀 Publish
on:
push:
branches: [main]
jobs:
release:
name: 🎉 Release
if: "!contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup Repo
uses: actions/checkout@v4
- name: 🏗 Setup PNPM
uses: pnpm/action-setup@v2
with:
version: 8
- name: 🏗 Get PNPM store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: 🏗 Setup PNPM cache
uses: actions/cache@v4
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: 🏗 Setup Node
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: "📦 Cache Node Modules"
uses: actions/[email protected]
id: cache-node-modules
with:
path: node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-node-modules-
- name: 📦 Install Dependencies
run: pnpm install
- name: 🏗 Setup Turborepo Cache
uses: dtinth/setup-github-actions-caching-for-turbo@v1
- name: 🛠️ Build
run: pnpm run build
- name: 🚀 Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
git config --global user.email "[email protected]"
git config --global user.name "Gabriel Taveira"
npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
pnpm run release