Skip to content

fix(deps): update typescript-eslint monorepo to v8 (major) #516

fix(deps): update typescript-eslint monorepo to v8 (major)

fix(deps): update typescript-eslint monorepo to v8 (major) #516

Workflow file for this run

name: Release
on:
pull_request:
push:
branches:
- main
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
env:
NODE_VERSION: 18
NODE_CACHE: "yarn"
jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Setup Node
uses: actions/[email protected]
with:
node-version: ${{ env.NODE_VERSION }}
cache: ${{ env.NODE_CACHE }}
- name: Install dependencies
run: yarn install --frozen-lockfile
test:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Setup Node
uses: actions/[email protected]
with:
node-version: ${{ env.NODE_VERSION }}
cache: ${{ env.NODE_CACHE }}
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Check eslint
run: yarn lint
- name: Check prettier
run: yarn prettify
- name: Check changelog
if: github.ref != 'refs/heads/main' && github.head_ref != 'changeset-release/main'
run: |
git pull -f origin main:main
yarn changelog
release:
needs: test
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout repository
uses: actions/[email protected]
- uses: actions/[email protected]
with:
node-version: ${{ env.NODE_VERSION }}
cache: ${{ env.NODE_CACHE }}
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Create/Update release PR or publish to NPM
uses: changesets/[email protected]
with:
publish: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GIT_CI_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_CI_TOKEN }}