chore: upd readme (#1713) #1587
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 | |
| id-token: write # Required for npm Trusted Publishing with OIDC | |
| 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@v4 | |
| with: | |
| node-version: "22" | |
| - name: Upgrade npm for OIDC support | |
| run: npm install -g npm@11.5.1 | |
| - 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: Import GPG key | |
| uses: crazy-max/ghaction-import-gpg@v6 | |
| with: | |
| gpg_private_key: ${{ secrets.GHA_BOT_GPG }} | |
| git_user_signingkey: true | |
| git_commit_gpgsign: true | |
| - 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" | |
| setupGitUser: false | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_CONFIG_PROVENANCE: true |