Skip to content

chore: packages access public setting #5

chore: packages access public setting

chore: packages access public setting #5

Workflow file for this run

name: Release
on:
push:
branches: [main, feat/release-packages]
jobs:
release:
# Basic security: the release job can only be executed from this repo and from the main branch (not a remote thing)
# if: ${{ github.repository == 'teableio/teable' && contains('refs/heads/main',github.ref)}}
name: Create a PR for release workflow
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.9.0]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: 📥 Monorepo install
uses: ./.github/actions/pnpm-install
- name: 🏗 Build
run: |
pnpm -F @teable/db-main-prisma prisma-generate --schema ./prisma/postgres/schema.prisma && pnpm -F './packages/**' run build
- name: 🦋 Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
commit: 'chore(release): version packages'
title: 'chore(release): version packages'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}