feat: inheritance support (#134) #112
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: Release | |
on: | |
push: | |
branches: | |
- main | |
env: | |
PNPM_CACHE_FOLDER: .pnpm-store | |
NPM_AUTH: ${{secrets.NPM_AUTH}} | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
jobs: | |
version: | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- name: checkout code repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: 'pnpm' | |
- name: Install Protoc | |
run: | | |
PB_REL="https://github.com/protocolbuffers/protobuf/releases" | |
curl -LO $PB_REL/download/v22.2/protoc-22.2-linux-x86_64.zip | |
unzip protoc-22.2-linux-x86_64.zip -d $HOME/.local | |
export PATH="$PATH:$HOME/.local/bin" | |
- name: Check protoc installation | |
run: protoc --version | |
- name: Setup npmrc | |
run: echo "//registry.npmjs.org/:_authToken=$NPM_AUTH" >> .npmrc | |
- name: setup pnpm config | |
run: pnpm config set store-dir $PNPM_CACHE_FOLDER | |
- name: pnpm install | |
run: pnpm install | |
- name: Setup turbo cache | |
env: | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
TURBO_API: ${{ secrets.TURBO_API }} | |
run: node scripts/setupTurboCache.js | |
- name: Run build | |
run: pnpm build | |
- name: create and publish versions | |
uses: changesets/action@v1 | |
with: | |
version: pnpm ci:version | |
commit: 'chore: update versions' | |
title: 'chore: update versions' | |
publish: pnpm ci:publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |