Skip to content

Commit 5fcf323

Browse files
authored
Merge pull request #736 from fcollonval/auto-backport-of-pr-732-on-0.11.x
Backport PR #732: Fix npm prerelease
2 parents 5490fcd + b9f4622 commit 5fcf323

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ jobs:
3434
twine upload dist/*
3535
- name: Publish the NPM package
3636
run: |
37-
npm publish --access public
37+
echo $PRE_RELEASE
38+
if [[ $PRE_RELEASE == "true" ]]; then export TAG="next"; else export TAG="latest"; fi
39+
npm publish --tag ${TAG} --access public
3840
env:
3941
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
42+
PRE_RELEASE: ${{ github.event.release.prerelease }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,4 @@ node_modules/
122122

123123
# vim stuff
124124
*.swp
125+
.devcontainer/

src/version.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)