snapshot.yml 745 B

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