feat: table blocks (#937) #844
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 | |
- beta | |
jobs: | |
Release: | |
if: "!contains(github.event.head_commit.message, 'SKIP CI')" | |
runs-on: ubuntu-latest | |
steps: | |
# Setup the git repo & Node environemnt. | |
# | |
- name: Checkout branch (${{ github.ref }}) | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false # install breaks with persistant creds! | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
run: | | |
npm ci | |
npm run build --if-present | |
env: | |
PUPPETEER_SKIP_DOWNLOAD: true | |
# Build, version, and tag a new release. | |
# | |
- name: Publish release | |
run: npm run release # configured in .releaserc | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} # auth push to remote repo | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN || secrets.GH_TOKEN }} # auth publish to registry | |
# Push release changes to the remote. | |
# | |
- name: Push to remote | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} | |
# Merge @latest release back to @next. | |
# | |
#- name: Sync to next | |
# if: "github.ref == 'refs/heads/main'" | |
# uses: ad-m/github-push-action@master | |
# with: | |
# github_token: ${{ secrets.GITHUB_TOKEN }} | |
# branch: ${{ github.ref }} | |
# continue-on-error: true | |
# Sync docs to rdmd.readme.io | |
# | |
#- name: Sync docs to rdmd.readme.io | |
# uses: readmeio/rdme@v8 | |
# with: | |
# rdme: docs ./docs --key=${{ secrets.RDME_KEY }} --version=2 |