Skip to content

Commit b9f4622

Browse files
committed
Fix npm prerelease (#732)
* Set npm tag depending on the release status * Bump to alpha 1
1 parent 73cf74b commit b9f4622

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)