UNPKG

@novo-learning/novo-sdk

Version:

SDK for the Novolanguage Speech Analysis API

118 lines (116 loc) 3.13 kB
image: node:18.14.2 definitions: steps: - step: &push-zwijsen on-fail: strategy: ignore # Build will fail, but remainder can be executed name: Push code Zwijsen script: - git remote add zwijsen git@ssh.dev.azure.com:v3/zwijsenonline/Spraakherkenning/novo-sdk - git push zwijsen - step: &push-vokal on-fail: strategy: ignore name: Push code Vokal script: - git remote add vokalai https://x-token-auth:$VOKALAI_TOKEN@bitbucket.org/vokalai/novo-sdk.git - git config user.email $VOKALAI_USER@bots.bitbucket.org - git push vokalai build: &build name: Build condition: changesets: includePaths: - 'src/**' - 'package.json' caches: - node script: - npm ci - npm run build lint: &lint name: Code linting condition: changesets: includePaths: - 'src/**' - 'package.json' caches: - node script: - npm ci - npm run lint test: &test name: Test condition: changesets: includePaths: - 'src/**' - 'package.json' caches: - node script: - npm ci - npm run test pipelines: default: - parallel: - step: *build - step: *lint - step: *test branches: main: - parallel: - step: <<: *build artifacts: - dist/** - 'package.json' - step: *lint - step: *test - step: name: Publish clone: enabled: false condition: changesets: includePaths: - 'src/**' - 'package.json' script: # - npm version minor -m "Upgrade to %s [skip ci]" (update version automatically) # - git push && git push --tags - pipe: atlassian/npm-publish:0.3.2 variables: NPM_TOKEN: $NPM_TOKEN EXTRA_ARGS: '--access public' - step: name: Publish eslint config condition: changesets: includePaths: - 'eslint-config/**' script: - cd eslint-config - npm version minor -m "Upgrade to %s [skip ci]" - git add package.json - git commit -m "Upgrade eslint config version" - git push && git push --tags - pipe: atlassian/npm-publish:0.3.2 variables: NPM_TOKEN: $NPM_TOKEN EXTRA_ARGS: '--access public' - parallel: - step: *push-zwijsen - step: *push-vokal pull-requests: '**': - parallel: - step: *build - step: *lint - step: *test custom: push-code-to-clients: - parallel: - step: *push-zwijsen - step: *push-vokal