Skip to content

Commit

Permalink
ci(publish): proper publishing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mikonse committed Jun 28, 2024
1 parent 199942d commit 5145b29
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,10 @@ jobs:
run: pdm sync -d

- name: Publish
run: 'npx nx build components && cd dist/web/components && npm publish --provenance'
run: '[[ ${{ github.ref_name }} =~ ^(.*)-[0-9]+\.[0-9]+\.[0-9]+$ ]] && export PROJECT="${BASH_REMATCH[1]}" && npx nx release publish --projects $PROJECT --verbose'
shell: bash
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
NPM_CONFIG_PROVENANCE: true

# - name: Publish
# run: '[[ ${{ github.ref_name }} =~ ^(.*)-[0-9]+\.[0-9]+\.[0-9]+$ ]] && export PROJECT="${BASH_REMATCH[1]}" && npx nx release publish --projects $PROJECT --verbose'
# shell: bash
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
# NPM_CONFIG_PROVENANCE: true
# PDM_PUBLISH_USERNAME: __token__
# PDM_PUBLISH_PASSWORD: ${{ secrets.PYPI_ACCESS_TOKEN }}
PDM_PUBLISH_USERNAME: __token__
PDM_PUBLISH_PASSWORD: ${{ secrets.PYPI_ACCESS_TOKEN }}

0 comments on commit 5145b29

Please sign in to comment.