remove window i18n and auto import instead #112
This file contains hidden or 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: build | |
| on: | |
| push: | |
| paths-ignore: | |
| - "docs/**" | |
| - "**.md" | |
| branches-ignore: | |
| # Master already has the publish workflow so avoid running twice | |
| - "master" | |
| jobs: | |
| build: | |
| name: Build project | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| node-version: [14.x] | |
| os: [ubuntu-latest] | |
| steps: | |
| - uses: actions/checkout@v1 | |
| - name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }} | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Cache node modules | |
| uses: actions/cache@v1 | |
| id: cache | |
| with: | |
| path: node_modules | |
| key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }} | |
| restore-keys: | | |
| ${{ runner.OS }}-build-${{ env.cache-name }}- | |
| ${{ runner.OS }}-build- | |
| ${{ runner.OS }}- | |
| - name: Install dependencies | |
| if: steps.cache.outputs.cache-hit != 'true' | |
| run: | | |
| yarn install | |
| - name: Build | |
| run: | | |
| CI=false yarn run build |