✨ feat(glossary): expose exactMatch on glossary types (#72) #73
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: | |
| push: | |
| branches: | |
| - main | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN_PUBLIC }} | |
| FORCE_COLOR: '3' | |
| jobs: | |
| release: | |
| name: Create Release PR | |
| runs-on: ubuntu-latest | |
| if: "!contains(github.event.head_commit.message, '🚀 release:')" | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Generate token | |
| id: auth | |
| uses: actions/create-github-app-token@v3 | |
| with: | |
| client-id: ${{ secrets.AUTH_APP_ID }} | |
| private-key: ${{ secrets.AUTH_APP_KEY }} | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v5 | |
| with: | |
| dest: ${{ runner.temp }}/setup-pnpm | |
| - name: Setup Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: .nvmrc | |
| registry-url: https://registry.npmjs.org | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Prepare data for badges | |
| run: | | |
| pnpm run build | |
| pnpm run test:coverage | |
| echo "BADGES_COVERAGE=$(node -e 'process.stdout.write(String(require("./coverage/coverage-summary.json").total.lines.pct))')" >> "$GITHUB_ENV" | |
| echo "BADGES_SIZE=$(gzip -c dist/browser/localazy-api-client.umd.min.js | wc -c)" >> "$GITHUB_ENV" | |
| - name: Run release script | |
| run: npx @localazy/workflow-scripts@latest create-release-pr | |
| env: | |
| GITHUB_TOKEN: ${{ steps.auth.outputs.token }} | |
| publish: | |
| name: Publish to npm | |
| runs-on: ubuntu-latest | |
| if: "contains(github.event.head_commit.message, '🚀 release:')" | |
| timeout-minutes: 10 | |
| permissions: | |
| contents: write | |
| id-token: write | |
| steps: | |
| - name: Generate token | |
| id: auth | |
| uses: actions/create-github-app-token@v3 | |
| with: | |
| client-id: ${{ secrets.AUTH_APP_ID }} | |
| private-key: ${{ secrets.AUTH_APP_KEY }} | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v5 | |
| with: | |
| dest: ${{ runner.temp }}/setup-pnpm | |
| - name: Setup Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: .nvmrc | |
| registry-url: https://registry.npmjs.org | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build | |
| run: pnpm run build | |
| - name: Determine npm tag | |
| id: npm-tag | |
| run: | | |
| VERSION=$(node -p "require('./package.json').version") | |
| if echo "$VERSION" | grep -q '-'; then | |
| echo "tag=${VERSION#*-}" | sed 's/\..*//' >> "$GITHUB_OUTPUT" | |
| else | |
| echo "tag=latest" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: Publish to npm | |
| run: pnpm publish --no-git-checks --tag ${{ steps.npm-tag.outputs.tag }} --access public --provenance | |
| - name: Create and push git tag | |
| id: git-tag | |
| run: | | |
| VERSION=$(node -p "require('./package.json').version") | |
| git tag "${VERSION}" | |
| git push origin "${VERSION}" | |
| echo "tag=${VERSION}" >> "$GITHUB_OUTPUT" | |
| echo "version=${VERSION}" >> "$GITHUB_OUTPUT" | |
| - name: Create GitHub Release | |
| run: npx @localazy/workflow-scripts@latest create-github-release "${{ steps.git-tag.outputs.version }}" | |
| env: | |
| GITHUB_TOKEN: ${{ steps.auth.outputs.token }} |