Skip to content

chore: put codemods back #1088

chore: put codemods back

chore: put codemods back #1088

Workflow file for this run

name: Component Library
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
build:
if: github.ref != 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Install dependencies
uses: bahmutov/npm-install@v1
- name: Run linter
run: npm run lint
- name: Run build
run: npm run build
- name: Run tests
run: npm run test
release:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Install dependencies
uses: bahmutov/npm-install@v1
- name: Run build
run: npm run build
- name: Release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
merge-main:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Merge main -> next
uses: devmasx/merge-branch@v1.3.1
with:
type: now
target_branch: next
github_token: ${{ github.token }}