ci: Use UV_PYTHON to set python version in tests (#714) #210
This file contains 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 to jsr | |
on: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
publish: | |
if: github.repository == 'manzt/anywidget' | |
runs-on: macos-14 | |
strategy: | |
matrix: | |
directory: | |
- packages/deno | |
- packages/signals | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: denoland/setup-deno@v2 | |
with: | |
deno-version: v1.x | |
- run: | | |
cd ${{ matrix.directory }} | |
# sync deno version with package.json | |
sed -i '' 's/\"version\": \"[^\"]*\"/\"version\": \"'$(jq -r '.version' package.json)'\"/' deno.json | |
deno publish --allow-dirty |