snapshot.yml 769 B

123456789101112131415161718192021222324252627282930313233343536
  1. name: snapshot
  2. on:
  3. push:
  4. branches:
  5. - dev
  6. - opentui
  7. concurrency: ${{ github.workflow }}-${{ github.ref }}
  8. jobs:
  9. publish:
  10. runs-on: ubuntu-latest
  11. steps:
  12. - uses: actions/checkout@v3
  13. with:
  14. fetch-depth: 0
  15. - run: git fetch --force --tags
  16. - uses: actions/setup-go@v5
  17. with:
  18. go-version: ">=1.24.0"
  19. cache: true
  20. cache-dependency-path: go.sum
  21. - uses: ./.github/actions/setup-bun
  22. - name: Publish
  23. run: |
  24. ./packages/opencode/script/publish.ts
  25. env:
  26. OPENCODE_SNAPSHOT: true
  27. OPENCODE_TAG: ${{ github.ref_name }}
  28. GITHUB_TOKEN: ${{ secrets.SST_GITHUB_TOKEN }}
  29. NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}