Skip to content

Commit 5145b29

Browse files
committed
ci(publish): proper publishing workflow
1 parent 199942d commit 5145b29

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

.github/workflows/publish.yaml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,10 @@ jobs:
3434
run: pdm sync -d
3535

3636
- name: Publish
37-
run: 'npx nx build components && cd dist/web/components && npm publish --provenance'
37+
run: '[[ ${{ github.ref_name }} =~ ^(.*)-[0-9]+\.[0-9]+\.[0-9]+$ ]] && export PROJECT="${BASH_REMATCH[1]}" && npx nx release publish --projects $PROJECT --verbose'
3838
shell: bash
3939
env:
4040
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
4141
NPM_CONFIG_PROVENANCE: true
42-
43-
# - name: Publish
44-
# run: '[[ ${{ github.ref_name }} =~ ^(.*)-[0-9]+\.[0-9]+\.[0-9]+$ ]] && export PROJECT="${BASH_REMATCH[1]}" && npx nx release publish --projects $PROJECT --verbose'
45-
# shell: bash
46-
# env:
47-
# NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
48-
# NPM_CONFIG_PROVENANCE: true
49-
# PDM_PUBLISH_USERNAME: __token__
50-
# PDM_PUBLISH_PASSWORD: ${{ secrets.PYPI_ACCESS_TOKEN }}
42+
PDM_PUBLISH_USERNAME: __token__
43+
PDM_PUBLISH_PASSWORD: ${{ secrets.PYPI_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)