Skip to content

Merge pull request #173 from ideal-postcodes/gnaf #158

Merge pull request #173 from ideal-postcodes/gnaf

Merge pull request #173 from ideal-postcodes/gnaf #158

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 18
uses: actions/setup-node@v1
with:
node-version: 18.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 }}