Skip to content

Commit eed8460

Browse files
authored
Merge pull request #368 from plotly/fix-npm-publish-step
Fix NPM publish step
2 parents b0a7b6c + 623d20f commit eed8460

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish to PyPI
1+
name: Publish to PyPI & NPM
22

33
on:
44
release:
@@ -40,7 +40,10 @@ jobs:
4040
path: npm-dist/
4141
- name: Publish to npm
4242
run: |
43-
npm publish npm-dist/*.tgz --access public
43+
pushd npm-dist
44+
FILE=$(echo *.tgz)
45+
npm publish "$FILE" --provenance --access public
46+
popd
4447
env:
4548
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4649
shell: bash

0 commit comments

Comments
 (0)