docs: record short-sha verification result #4
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: Publish next | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| packages: write | |
| jobs: | |
| publish-next: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: "1.3.14" | |
| - run: bun install --frozen-lockfile | |
| - run: bun run build | |
| - run: bunx changeset version --snapshot "next-$(git rev-parse --short HEAD)" --snapshot-prerelease-template "{tag}" | |
| - run: bun publish --registry https://npm.pkg.github.com --tag next --tolerate-republish | |
| env: | |
| NPM_CONFIG_TOKEN: ${{ secrets.GITHUB_TOKEN }} |