Skip to content

Publish

Publish #7

Workflow file for this run

name: Publish
on:
push:
tags:
- v*
workflow_dispatch:
jobs:
publish-pypi:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'djlint' }}
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v3
- run: uv build --python 3.12 --no-cache
- uses: pypa/gh-action-pypi-publish@release/v1
publish-npm:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'djlint' }}
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
registry-url: "https://registry.npmjs.org"
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}