Skip to content

Merge pull request #2 from shopware/next-33446/pnpm #1

Merge pull request #2 from shopware/next-33446/pnpm

Merge pull request #2 from shopware/next-33446/pnpm #1

Workflow file for this run

name: Publish to NPM
on:
push:
branches:
- main
jobs:
publish:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: pnpm ci
- name: Build distributed files
run: pnpm --prefix ./packages/component-library run build-vue
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: 'public'