mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-14 18:01:20 +08:00
54 lines
1.5 KiB
YAML
54 lines
1.5 KiB
YAML
name: Publish to npm
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*"
|
|
|
|
jobs:
|
|
publish:
|
|
name: Publish
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
environment: npm-publish
|
|
permissions:
|
|
contents: write
|
|
id-token: write
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 10
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 24
|
|
cache: pnpm
|
|
registry-url: "https://registry.npmjs.org"
|
|
- run: pnpm install --frozen-lockfile
|
|
- run: pnpm build
|
|
|
|
- name: Publish @hyperframes/core
|
|
run: pnpm --filter @hyperframes/core publish --access public --provenance --no-git-checks
|
|
|
|
- name: Publish @hyperframes/engine
|
|
run: pnpm --filter @hyperframes/engine publish --access public --provenance --no-git-checks
|
|
|
|
- name: Publish @hyperframes/producer
|
|
run: pnpm --filter @hyperframes/producer publish --access public --provenance --no-git-checks
|
|
|
|
- name: Publish @hyperframes/studio
|
|
run: pnpm --filter @hyperframes/studio publish --access public --provenance --no-git-checks
|
|
|
|
- name: Publish hyperframes (CLI)
|
|
run: pnpm --filter hyperframes publish --access public --provenance --no-git-checks
|
|
|
|
- name: Create GitHub Release
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
VERSION="${GITHUB_REF_NAME#v}"
|
|
gh release create "v${VERSION}" \
|
|
--repo "${{ github.repository }}" \
|
|
--title "v${VERSION}" \
|
|
--generate-notes
|