Skip to content

Commit

Permalink
fix: Add deployment pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
gutentag2012 committed Apr 5, 2024
1 parent 21d66d1 commit da3cfae
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CD

on:
release:
types:
- published
workflow_dispatch:

jobs:
release:
strategy:
matrix:
package: [form-core, form-react, validation-adapter-zod]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm build
- run: pnpm test
- run: npm publish --access public
name: Publish ${{ matrix.package }}
working-directory: packages/${{ matrix.package }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit da3cfae

Please sign in to comment.