Files
payload-mailing/.github/workflows/version-and-publish.yml
Bas van den Aakster 111c475de8 Simplify workflow to just publish on main push
### 🔧 Improvements
- Removed complex version management and branch workflows
- Simplified to basic NPM publish on main branch push
- Removed Claude integration and complex version calculation
- Streamlined to: checkout → setup → install → test → build → publish

### 🐛 Bug Fixes
- Eliminated workflow complexity and potential failure points
- Removed dependency on external services and complex logic
- Fixed workflow reliability by using standard publish pattern

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-13 14:29:06 +02:00

37 lines
731 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 }}