Skip to content

Commit a62f38f

Browse files
author
xiazhigang
committed
修改 尝试修改成 vite 可用的版本
1 parent 16a7955 commit a62f38f

3 files changed

Lines changed: 497 additions & 455 deletions

File tree

.github/workflows/publish.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3+
4+
name: Node.js Package
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
jobs:
11+
publish-npm:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-node@v2
16+
with:
17+
node-version: 14
18+
registry-url: https://registry.npmjs.org/
19+
scope: "@yocdev"
20+
- run: yarn publish --access public
21+
env:
22+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
23+
24+
publish-gpr:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v2
28+
- uses: actions/setup-node@v2
29+
with:
30+
node-version: 14
31+
registry-url: https://npm.pkg.github.com/
32+
- run: yarn publish --access public
33+
env:
34+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "react-prism-editor",
2+
"name": "@yocdev/react-prism-editor",
33
"version": "1.1.1",
44
"description": "React prism editor with theme,line-numbers,copy to dashboard",
5-
"main": "lib/index.js",
5+
"main": "es/index.js",
66
"files": [
77
"css",
88
"es",

0 commit comments

Comments
 (0)