Skip to content

Commit

Permalink
Merge pull request #736 from fcollonval/auto-backport-of-pr-732-on-0.…
Browse files Browse the repository at this point in the history
…11.x

Backport PR #732: Fix npm prerelease
  • Loading branch information
fcollonval authored Aug 22, 2020
2 parents 5490fcd + b9f4622 commit 5fcf323
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ jobs:
twine upload dist/*
- name: Publish the NPM package
run: |
npm publish --access public
echo $PRE_RELEASE
if [[ $PRE_RELEASE == "true" ]]; then export TAG="next"; else export TAG="latest"; fi
npm publish --tag ${TAG} --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
PRE_RELEASE: ${{ github.event.release.prerelease }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,4 @@ node_modules/

# vim stuff
*.swp
.devcontainer/
2 changes: 0 additions & 2 deletions src/version.ts

This file was deleted.

0 comments on commit 5fcf323

Please sign in to comment.