mirror of
https://github.com/carloscuesta/gitmoji.git
synced 2025-12-08 20:14:12 +00:00
* 🔧 Add `pnpm-workspace` configuration * 🔧 Add `pnpm-lock` file * ♻️ Replace `yarn` with `pnpm` in root package.json * 🔥 Remove yarn binary * ⬆️ Bump `next-pwa` dependencies * 🔥 Remove yarn lockfile * ♻️ Replace `yarn` with `pnpm` in gitmojis package * ♻️ Replace `yarn` with `pnpm` in website package * ♻️ Replace `yarn` with `pnpm` in GitHub workflows * ♻️ Adjust `lintstagedrc` prettier arguments * 📝 Update documentation * ♻️ Replace `yarn` with `pnpm` in git hooks * 🔥 Remove yarn refs from git files * ⬆️ Update `clipboard` dependency * 👷♂️ Install pnpm in GitHub Actions * 🔥 Remove unnecessary `exec` c md * 📝 Update documentation * 🔧 Specify pnpm as an engine
31 lines
859 B
YAML
31 lines
859 B
YAML
name: NPM Publish
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*"
|
|
jobs:
|
|
npm-publish:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: pnpm/action-setup@v2
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
cache: "pnpm"
|
|
node-version: "18"
|
|
- name: Install dependencies 📦
|
|
run: pnpm install
|
|
- name: Build 👷♂️
|
|
run: pnpm turbo run build --filter=gitmojis
|
|
- name: Publish package to NPM 🚀
|
|
env:
|
|
NPM_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }}
|
|
run: |
|
|
npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
|
|
pnpm turbo publishPackage
|
|
- name: Publish GitHub Release 📝
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
name: gitmoji ${{github.ref_name}}
|
|
generate_release_notes: true
|