Skip to content
This repository was archived by the owner on Mar 30, 2022. It is now read-only.

Commit dd5d9bd

Browse files
author
innc11
committed
chore: 修复打包失败的问题
1 parent d9e03c1 commit dd5d9bd

File tree

1 file changed

+4
-21
lines changed

1 file changed

+4
-21
lines changed

.github/workflows/main.yml

+4-21
Original file line numberDiff line numberDiff line change
@@ -20,29 +20,12 @@ jobs:
2020
run: |
2121
yarn
2222
yarn run build
23-
copy dist\april-comment.js dist\index.js
24-
copy dist\april-comment.js dist\index.js.map
25-
copy dist\april-comment.css dist\index.css
26-
copy dist\april-comment.css dist\index.css.map
27-
28-
- name: Check Out TagName
29-
id: checkout-tagname
30-
shell: "python3 {0}"
31-
run: |
32-
import os
33-
import re
34-
ref = os.getenv('GITHUB_REF', '')
35-
match = re.search(r'refs\/tags\/(.*)', ref)
36-
tag_name = match[1] if match is not None else ''
37-
print('::set-output name=tag_name::'+tag_name)
23+
cp dist/april-comment.js dist/index.js
24+
cp dist/april-comment.js dist/index.js.map
25+
cp dist/april-comment.css dist/index.css
26+
cp dist/april-comment.css dist/index.css.map
3827
3928
- name: NPM Publish
4029
uses: JS-DevTools/npm-publish@v1
4130
with:
4231
token: ${{ secrets.NPM_TOKEN }}
43-
44-
- if: steps.publish.outputs.type != 'none'
45-
run: |
46-
echo "Version changed: ${{ steps.publish.outputs.old-version }} => ${{ steps.publish.outputs.version }}"
47-
48-

0 commit comments

Comments
 (0)