Skip to content

Commit

Permalink
npm
Browse files Browse the repository at this point in the history
  • Loading branch information
ymh0000123 committed Nov 13, 2023
1 parent af7e6ff commit 7cdc073
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 4 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/To NPM.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: To NPM
"on":
- workflow_dispatch
- push
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16.x
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<!--
* @Date: 2023-11-11 18:37:07
* @LastEditors: Please set LastEditors
* @LastEditTime: 2023-11-12 18:32:57
* @FilePath: \Genshin-Impact-Good-words-and-sentences\index.html
* @LastEditTime: 2023-11-13 20:41:49
* @FilePath: \undefinedd:\hc\Genshin-Impact-Good-words-and-sentences\index.html
-->
<!DOCTYPE html>
<html lang="zh-CN">
Expand Down Expand Up @@ -61,7 +61,7 @@ <h2><span class="layui-badge layui-bg-blue">免费</span> <span class="layui-bad
<div class="container py-4">
<div class="card">
<div class="card-body">
<p id="ys"></p>
<p id="ys"><span class="placeholder" style="width: 25%;"></span></p>
<button type="button" class="layui-btn layui-btn-normal layui-btn-radius"
onclick="location.reload()">换一句</button>
</div>
Expand Down
Empty file added new_version.py
Empty file.
11 changes: 11 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "genshin-impact-good-words-and-sentences",
"version": "1.0.1",
"description": "",
"main": "script_npm.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "UNLICENSED"
}
2 changes: 1 addition & 1 deletion script_moeyy.js → script_npm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// 使用fetch函数获取文本文件内容
fetch('https://github.moeyy.xyz/https://raw.githubusercontent.com/ymh0000123/Genshin-Impact-Good-words-and-sentences/main/Good-words.txt')
fetch('https://unpkg.com/genshin-impact-good-words-and-sentences/Good-words.txt')
.then(response => response.text())
.then(data => {
// 将文本内容按行分割成数组
Expand Down

0 comments on commit 7cdc073

Please sign in to comment.