Skip to content

Add extra params component to show fields specified in validation_sch… #333

Add extra params component to show fields specified in validation_sch…

Add extra params component to show fields specified in validation_sch… #333

Workflow file for this run

name: Build
on:
# Run this workflow for pushes on all branches
push:
branches:
- '**'
# Run this workflow when a tag or branch is created
create:
# Run this workflow for pull requests
pull_request:
jobs:
run_tests:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 15.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Lint files
run: npm run lint:check
- name: Build library
run: npm run build
- name: Run tests
run: |
npm install --no-save @vue/composition-api
npm run test:unit
npm prune @vue/composition-api
npm prune --production
build_and_publish_package:
# Only run this job if the run_tests job has succeeded, and if
# this workflow was triggered by the creation of a new tag
needs: run_tests
if: github.event_name == 'create' && github.event.ref_type == 'tag' && github.event.repository.fork == false
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v2
with:
node-version: '12.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run build
- run: npm prune --production
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}