Merge pull request #218 from ideal-postcodes/dnk #185
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: Release | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - beta | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v1 | |
| - name: Use Node.js 20 | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: 20.x | |
| - name: Cache node modules | |
| uses: actions/cache@v2 | |
| with: | |
| path: ~/.npm | |
| key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
| - name: Install | |
| run: npm install | |
| - name: Unit Tests | |
| run: npm run test | |
| env: | |
| CYPRESS_API_KEY: ${{ secrets.API_KEY }} | |
| - name: Build | |
| run: npm run build | |
| - name: Semantic Release | |
| run: npm run semantic-release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |