Skip to content

Angelo/jaw 169 add semantic release to sdk (#13) #14

Angelo/jaw 169 add semantic release to sdk (#13)

Angelo/jaw 169 add semantic release to sdk (#13) #14

Workflow file for this run

name: Release
on:
push:
branches:
- 'main'
jobs:
release:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install Dependencies
run: |
yarn install
npx nx run-many --target=install --all --parallel
- name: Build and Test
run: |
npx nx affected -t lint
npx nx affected -t test --configuration=ci --passWithNoTests --exclude=justaname-mono-sdk
npx nx affected -t build
- name: Set up Git user
run: |
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git config --global user.name "${GITHUB_ACTOR}"
- name: Release
run: npx nx release --yes
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}