feat: add split-macro-imports codemod (#39) #93
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Main CI | |
on: | |
workflow_dispatch: | |
inputs: | |
distTag: | |
description: "Dist tag to publish" | |
required: true | |
default: "latest" | |
pull_request: | |
push: | |
branches: | |
- "main" | |
jobs: | |
build_and_testing: | |
runs-on: ubuntu-latest | |
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- uses: actions/setup-node@v4 | |
with: | |
always-auth: true | |
cache: "yarn" | |
node-version: 20 | |
- name: Creates local .npmrc | |
if: ${{github.event.inputs.distTag == 'latest'}} | |
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc | |
- name: Install | |
run: yarn install --frozen-lockfile | |
- name: Check Prettier Formatting | |
run: yarn prettier:check | |
- name: Build & Testing | |
run: | | |
yarn build | |
yarn test | |
- name: Release | |
if: ${{github.event.inputs.distTag == 'latest'}} | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Lingui CI" | |
npm run release |