Files
payload-mailing/.github/workflows/version-and-publish.yml
Bas van den Aakster 8d73409e89 Simplify workflow to basic NPM publish only
### 🔧 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
2025-09-13 14:34:13 +02:00

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 }}