fix: infer return of the left hand of assignment operator #21
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: Quality & Release | |
on: [push] | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
quality: | |
name: Quality | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
registry-url: https://npm.pkg.github.com/ | |
scope: '@LunarClient' | |
always-auth: true | |
- name: Setup PNPM | |
uses: pnpm/action-setup@v3 | |
with: | |
version: 8 | |
run_install: true | |
- name: Build Packages | |
run: pnpm build | |
- name: Run Tests | |
run: pnpm test | |
- name: Check Types | |
run: pnpm types | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
needs: quality | |
if: github.ref == 'refs/heads/master' | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
registry-url: https://npm.pkg.github.com/ | |
scope: '@LunarClient' | |
always-auth: true | |
- name: Setup PNPM | |
uses: pnpm/action-setup@v3 | |
with: | |
version: 8 | |
run_install: true | |
- name: Create Release Pull Request or Publish to npm | |
id: changesets | |
uses: changesets/action@v1 | |
with: | |
publish: pnpm release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN }} |