chore(release): publish #35
Workflow file for this run
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 | |
| on: | |
| push: | |
| tags: ["*-*.*.*"] | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| enable-cache: true | |
| - name: Install the project | |
| run: uv sync --locked --all-extras --dev | |
| - name: Set up Nodejs | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: "npm" | |
| cache-dependency-path: package-lock.json | |
| - name: Install node dependencies | |
| run: npm ci | |
| - name: Get Release Projects | |
| id: get_release_project | |
| env: | |
| TAG: ${{ github.ref_name }} | |
| run: '[[ ${{ github.ref_name }} =~ ^(.*)-[0-9]+\.[0-9]+\.[0-9]+$ ]] && export PROJECT="${BASH_REMATCH[1]}" && echo "release_project=${BASH_REMATCH[1]}" >> $GITHUB_OUTPUT' | |
| shell: bash | |
| - name: Publish | |
| run: npx nx release publish --projects ${{ steps.get_release_project.outputs.release_project }} --verbose | |
| env: | |
| NPM_CONFIG_PROVENANCE: true | |
| NPM_CONFIG_ACCESS: public |