Skip to content

Commit 6f127e0

Browse files
committed
update publish workflow
1 parent 1c35eb0 commit 6f127e0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,13 @@ jobs:
1616

1717
- name: Tag name
1818
run: echo "TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
19-
20-
- run: npm install
19+
- run: npm ci
2120
- run: npm run test
2221

2322
- name: NPM Publish
2423
uses: JS-DevTools/npm-publish@v1
2524
with:
26-
tag: ${{ env.TAG }}
25+
tag: ${{ fromJSON('["latest", "alpha"]')[contains(env.TAG, '-')] }}
2726
token: ${{ secrets.NPM_TOKEN }}
2827

2928
- name: Github Release

0 commit comments

Comments
 (0)