Skip to content

Commit

Permalink
ci(publish): test
Browse files Browse the repository at this point in the history
  • Loading branch information
mikonse committed Jun 28, 2024
1 parent e28b851 commit 550d8f5
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,18 @@ jobs:
- name: Install Python dependencies
run: pdm sync -d

- name: Echo info output
run: cat ~/.npmrc

- name: Publish
run: '[[ ${{ github.ref_name }} =~ ^(.*)-[0-9]+\.[0-9]+\.[0-9]+$ ]] && export PROJECT="${BASH_REMATCH[1]}" && npx nx release publish --projects $PROJECT --verbose'
run: 'npx build components && cd dist/web/components && npm publish --provenance'
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 }}

# - 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 }}

0 comments on commit 550d8f5

Please sign in to comment.