chore: fix typos in docs #1143
This file contains hidden or 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: | |
workflow_dispatch: | |
inputs: | |
skip_lingo: | |
description: "Skip Lingo.dev step" | |
type: "boolean" | |
default: false | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Debug Permissions | |
run: | | |
ls -la | |
ls -la integrations/ | |
ls -la integrations/directus/ | |
- name: Check for [skip i18n] | |
run: | | |
COMMIT_MESSAGE=$(git log -1 --pretty=%B) | |
if echo "$COMMIT_MESSAGE" | grep -iq '\[skip i18n\]'; then | |
echo "Skipping i18n checks due to [skip i18n] in commit message." | |
exit 0 | |
fi | |
- name: Use Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 20.12.2 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
id: pnpm-install | |
with: | |
version: 9.12.3 | |
run_install: false | |
- name: Configure pnpm cache | |
id: pnpm-cache | |
run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT | |
- uses: actions/cache@v3 | |
with: | |
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- name: Install deps | |
run: pnpm install | |
- name: Lingo.dev | |
if: ${{ !inputs.skip_lingo }} | |
uses: ./ | |
with: | |
api-key: ${{ secrets.LINGODOTDEV_API_KEY }} | |
pull-request: true | |
parallel: true | |
env: | |
GH_TOKEN: ${{ github.token }} | |
- name: Setup | |
run: | | |
pnpm turbo telemetry disable | |
- name: Configure Turbo cache | |
uses: dtinth/setup-github-actions-caching-for-turbo@v1 | |
- name: Build | |
run: pnpm turbo build --force | |
- name: Test | |
run: pnpm turbo test --force | |
- name: Create Release Pull Request or Publish to npm | |
id: changesets | |
uses: changesets/action@v1 | |
with: | |
title: "chore: bump package versions" | |
version: pnpm changeset version | |
publish: pnpm changeset publish | |
commit: "chore: bump package version" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |