Skip to content

Commit f2486a1

Browse files
Merge pull request #47 from Dynamsoft/fix/dist-tracking-and-beta-publish-workflow
fix: track dist folder and add beta publish workflow
2 parents e2cf76d + bc419b2 commit f2486a1

File tree

4 files changed

+5381
-2
lines changed

4 files changed

+5381
-2
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ jobs:
2929
run: npm run build
3030

3131
- name: Publish to npm
32-
run: npm publish
32+
run: |
33+
if [[ "${{ github.event.release.prerelease }}" == "true" ]]; then
34+
npm publish --tag beta
35+
else
36+
npm publish
37+
fi
3338
env:
3439
NODE_AUTH_TOKEN: ${{ secrets.NPM_PAT }}

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
dist
21
node_modules

0 commit comments

Comments
 (0)