mirror of
https://github.com/xtr-dev/payload-mailing.git
synced 2025-12-10 00:03:23 +00:00
### 🔧 Improvements - Removed all version bumping, changelog generation, and git manipulation - Simplified to core workflow: checkout → setup → install → test → build → publish - Removed complex conditions, branches, and notifications - Uses whatever version is currently in package.json ### 🐛 Bug Fixes - Eliminated potential workflow failures from complex logic - Removed git force push operations and version conflicts - Streamlined to reliable, standard publish pattern
36 lines
730 B
YAML
36 lines
730 B
YAML
name: Publish to NPM
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
registry-url: 'https://registry.npmjs.org'
|
|
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v4
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Run tests
|
|
run: pnpm test
|
|
|
|
- name: Run build
|
|
run: pnpm build
|
|
|
|
- name: Publish to NPM
|
|
run: pnpm publish --access public --no-git-checks
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |