Skip to content

Fix publishing

Fix publishing #2

Workflow file for this run

name: Publish
on:
push:
tags:
- v*
jobs:
publish-pypi:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'djlint' }}
# permissions:
# id-token: write
steps:
- uses: actions/checkout@v4
- run: pipx run poetry build --no-interaction
- uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
publish-npm:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'djlint' }}
steps:
- uses: actions/checkout@v4
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}