fix: add funding #2
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 & Release | ||
on: | ||
push: | ||
branches: [main, alpha, beta, rc] | ||
pull_request: | ||
branches: [main] | ||
types: [opened, synchronize, closed] | ||
concurrency: | ||
group: ${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [ 20.x ] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Install dependencies π | ||
run: yarn install --immutable --network-timeout 500000 | ||
- name: Run lint π | ||
run: yarn lint | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [ 20.x, 18.x ] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Install dependencies π | ||
run: yarn install --immutable --network-timeout 500000 | ||
- name: Run build | ||
run: yarn tsc --build | ||
- name: Run lint π | ||
run: yarn test --since origin/main | ||
release: | ||
runs-on: ubuntu-latest | ||
needs: [ test, build, lint ] | ||
if: ${{ github.event_name != 'pull_request' && (contains(github.ref, 'main') || contains(github.ref, 'alpha') || contains(github.ref, 'beta') || contains(github.ref, 'rc')) }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: "20" | ||
- name: Install dependencies π | ||
run: yarn install --immutable --network-timeout 500000 | ||
- run: yarn build | ||
- name: Release packages π | ||
env: | ||
CI: true | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||
run: yarn release | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: packages | ||
path: | | ||
package.json | ||
packages/*/package.json |