Skip to content

Publish Formsflow Custom Formio Elements CI #4

Publish Formsflow Custom Formio Elements CI

Publish Formsflow Custom Formio Elements CI #4

name: Publish Formsflow Custom Formio Elements CI
on:
release:
types: [created]
pull_request:
types: [closed]
branches:
- master
paths:
- "formsflow-custom-formio/**"
defaults:
run:
shell: bash
working-directory: ./formsflow-custom-formio
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
- run: npm ci --include=dev
- run: npm run build
- run: npm run buildExcludeFormio
publish-npm:
if: github.repository == 'AOT-Technologies/forms-flow-ai-extensions' && github.head_ref == 'Formsflow-dev'
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
registry-url: https://registry.npmjs.org/
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}