Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: CI Checks

on:
pull_request:
branches:
- master

permissions:
contents: read

jobs:
ci-checks:
runs-on: ubuntu-latest
name: CI Checks (Build, Lint, Test, Release Dry-Run)
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Derive appropriate SHAs for base and head for nx affected commands
uses: nrwl/nx-set-shas@v4
with:
main-branch-name: 'master'

- name: Run build on affected projects
run: npx nx affected --target=build --parallel=3
continue-on-error: false

- name: Run lint on affected projects
run: npx nx affected --target=lint --parallel=3
continue-on-error: false

- name: Run typecheck on affected projects
run: npx nx affected --target=typecheck --parallel=3
continue-on-error: false

- name: Clear Jest cache
run: npx jest --clearCache

- name: Run tests on affected projects
run: npx nx affected --target=test --parallel=3 --coverage
continue-on-error: false
99 changes: 0 additions & 99 deletions .github/workflows/main.yml

This file was deleted.

53 changes: 53 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Release

on:
push:
branches:
- master
workflow_dispatch:

permissions:
id-token: write
contents: write

jobs:
release:
runs-on: ubuntu-latest
name: Release Packages
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
ssh-key: ${{ secrets.BOT_SSH_KEY }}

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: npm ci

- name: Derive appropriate SHAs for base and head for nx affected commands
uses: nrwl/nx-set-shas@v4
with:
main-branch-name: 'master'

- name: Build affected packages
run: npx nx affected --target=build --parallel=3

- name: 🚀 Run Nx Release
run: |
echo "registry=https://registry.npmjs.org/" >> .npmrc
git config --global user.email "${{ secrets.RELEASE_EMAIL }}"
git config --global user.name "${{ secrets.RELEASE_USERNAME }}"

npx nx release -y
env:
# NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
NPM_CONFIG_PROVENANCE: true
npm_config_legacy_peer_deps: false
2 changes: 1 addition & 1 deletion packages/ant-component-mapper/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,4 @@ We welcome any community contribution. Don't be afraid to report bug or to creat

### LICENSE

Apache License 2.0
Apache License 2.0