Skip to content

Merge pull request #207 from ideal-postcodes/dependabot/npm_and_yarn/… #183

Merge pull request #207 from ideal-postcodes/dependabot/npm_and_yarn/…

Merge pull request #207 from ideal-postcodes/dependabot/npm_and_yarn/… #183

Workflow file for this run

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 }}