docs(@tagtree): add overview pages so docs site picks up the packages #5
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: | |
| - master | |
| paths: | |
| - 'packages/tagtree-core/**' | |
| - 'packages/tagtree-next/**' | |
| - 'packages/tagtree-shopify/**' | |
| - 'packages/tagtree-payload/**' | |
| - '.changeset/**' | |
| - '.github/workflows/release.yml' | |
| concurrency: | |
| group: release-${{ github.ref }} | |
| cancel-in-progress: false | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| id-token: write | |
| jobs: | |
| release: | |
| name: 🚀 Release | |
| runs-on: ubuntu-latest | |
| if: github.repository == 'filiphsps/commerce' | |
| timeout-minutes: 20 | |
| steps: | |
| - name: 🕶️ Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: 🚀 Bootstrap | |
| uses: ./.github/common/bootstrap | |
| - name: 🔨 Build packages | |
| run: pnpm build:packages | |
| - name: 📦 Create version PR or publish | |
| id: changesets | |
| uses: changesets/action@v1 | |
| with: | |
| publish: pnpm changeset:publish | |
| version: pnpm changeset:version | |
| commit: 'chore(release): version @tagtree packages' | |
| title: 'chore(release): version @tagtree packages' | |
| env: | |
| # No NPM_TOKEN — publishing uses OIDC trusted-publisher flow. | |
| # `id-token: write` (above) lets the runner mint a GitHub OIDC | |
| # token; npm exchanges it for a short-lived publish token IF | |
| # the package has GitHub Actions configured as a trusted | |
| # publisher on npmjs.com (Settings → Publishing Access → | |
| # Trusted Publishers → Add → filiphsps/commerce, release.yml). | |
| # Must be set up per @tagtree/* package before its first publish. | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_CONFIG_PROVENANCE: 'true' |