Skip to content

fix: yml

fix: yml #76

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: Reinstall Dependencies
run: |
yarn install
npx nx run-many --target=reinstall --projects=justaname-express,justaname-next-app,justaname-next-pages,justaname-fastify,justaname-nestjs,justaname-expo-full,justaname-react,justaname-hapi,justaname-koa,justaname-expo-frontend --parallel
- name: Check for Updated yarn.lock Files
run: |
git add examples/*/yarn.lock
if ! git diff --cached --exit-code; then
git commit -m "CI: Update yarn.lock files"
git push origin main
fi
- 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: Pull latest changes from main
run: git pull origin main
- name: Release
run: npx nx release --yes
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}