This repository was archived by the owner on Oct 31, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +23
-45
lines changed
Expand file tree Collapse file tree 3 files changed +23
-45
lines changed Original file line number Diff line number Diff line change @@ -3,21 +3,15 @@ name: "🚀 publish"
33
44on :
55 push :
6- branches :
7- - main
6+ # branches:
7+ # - main
88 tags :
9- - " *"
9+ - " v *"
1010 paths :
1111 - ' package.json'
1212 - ' package-lock.json'
1313 - ' src'
1414
15- # workflow_dispatch:
16- # inputs:
17- # relVersion:
18- # description: 'Version'
19- # required: true
20-
2115jobs :
2216
2317 # Generate dist
4034 - run : npm install
4135
4236 # Build dist
37+ - run : mkdir dist
4338 - run : npm run all
4439
40+ # publish release
41+ - run : echo ${{ github.sha }} >> Release.txt
42+ - run : mv LICENSE LICENSE.txt
43+ - name : " 📦 Github Release"
44+ uses : " marvinpinto/action-automatic-releases@latest"
45+ if : startsWith(github.ref, 'refs/tags/')
46+ with :
47+ automatic_release_tag : " latest"
48+ prerelease : false
49+ files : |
50+ src/*.js
51+ dist/*.js
52+ package.json
53+ Release.txt
54+ LICENSE.txt
55+ README.md
56+ env :
57+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
58+
4559 # Publish to npm
4660 - name : " 📦 publish to npm"
4761 uses : JS-DevTools/npm-publish@v1
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments