feat(language) add lang option #29
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Web SDK CI | |
on: | |
pull_request: | |
release: | |
types: | |
- published | |
jobs: | |
run-ci: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
registry-url: 'https://registry.npmjs.org' | |
- run: npm i | |
- name: Check git status | |
run: git status | |
- name: Check git diff | |
run: git diff | |
- name: Check if the git repository is clean | |
run: exit $( git status --porcelain --untracked-files=no | head -255 | wc -l ) | |
- run: npm run lint | |
- name: Build project | |
run: npm run build | |
- name: Run unit tests | |
run: npm test | |
- name: Release to npm | |
if: github.event_name == 'release' && github.event.action == 'published' | |
run: npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |