fix(module): create a separate file for api routes (#2869) #6159
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: ci | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
# windows: | |
# runs-on: windows-latest | |
# steps: | |
# - uses: actions/checkout@v4 | |
# - uses: actions/setup-node@v3 | |
# with: | |
# node-version: '16' | |
# - uses: pnpm/action-setup@v2.4.0 | |
# name: Install pnpm | |
# id: pnpm-install | |
# with: | |
# version: 9 | |
# - run: pnpm install | |
# - run: pnpm prepare | |
# - run: pnpm lint | |
# - run: pnpm build | |
# - run: pnpm vitest | |
ubuntu: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- run: corepack enable | |
- run: pnpm install | |
- run: pnpm prepare | |
- run: pnpm lint | |
- run: pnpm build | |
- run: pnpm vitest | |
- name: Release Edge | |
if: | | |
github.event_name == 'push' && | |
!contains(github.event.head_commit.message, '[skip-release]') | |
run: ./scripts/release-edge.sh | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}} |