fix(eslint): version bump (#26) #220
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: Build | |
env: | |
HUSKY: 0 | |
on: | |
workflow_dispatch: {} | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup Node.js 20 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "20" | |
- name: Install pnpm | |
run: | | |
curl -L https://unpkg.com/@pnpm/self-installer@latest | node | |
export PATH="./node_modules/.bin:$PATH" | |
pnpm --version | |
- name: Install dependencies | |
run: pnpm install | |
- name: Run build | |
run: pnpm build:ci:pkg # Assuming pnpm and node_modules are correctly configured to be available | |
- name: Run tests | |
run: pnpm test | |
- name: Run build | |
run: pnpm build:ci # Assuming pnpm and node_modules are correctly configured to be available | |
- name: Determine semantic-release command | |
id: set-release-command | |
run: echo "::set-output name=command::$(if [[ $GITHUB_REF == 'refs/heads/main' ]]; then echo 'npx semantic-release --debug'; else echo 'npx semantic-release --dry-run'; fi)" | |
- name: Determine monorepo semantic-release command | |
id: set-monorepo-release-command | |
run: echo "::set-output name=command::$(if [[ $GITHUB_REF == 'refs/heads/main' ]]; then echo 'pnpm -r --workspace-concurrency=1 exec -- npx semantic-release --debug -e semantic-release-monorepo'; else echo 'pnpm -r --workspace-concurrency=1 exec -- npx semantic-release -e semantic-release-monorepo --dry-run'; fi)" | |
- name: Run semantic-release | |
run: ${{ steps.set-release-command.outputs.command }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | |
- name: Run monorepo semantic-release | |
run: ${{ steps.set-monorepo-release-command.outputs.command }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} |