Skip to content

Commit cf9083c

Browse files
committed
Add publish to myget
1 parent e49a5ab commit cf9083c

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/build-and-publish.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,21 @@ jobs:
2424
# Ref: https://github.com/actions/setup-node#supported-version-syntax
2525
node-version: latest
2626

27+
- name: Change Version
28+
run: npm version 6.2.${{ github.run_number }} --no-git-tag-version
29+
2730
- name: Install Dependencies
2831
run: npm install
2932

3033
- name: Build
3134
run: npm run build-vite
3235

36+
- name: Publish
37+
uses: JS-DevTools/npm-publish@v4
38+
with:
39+
token: ${{ secrets.MYGET_API_KEY }}
40+
registry: https://www.myget.org/F/where/npm
41+
3342
- name: Upload Pages artifact
3443
uses: actions/upload-pages-artifact@v4
3544
with:

dev/vite.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
export default {
22
plugins: [],
33
root: "dev",
4+
base: "./",
45
server: {
56
host: '0.0.0.0',
67
hmr: {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"@lezer/lr": "^1.0.0",
4848
"codemirror": "^6.0.0",
4949
"npm-run-all": "^4.0.0",
50-
"vite": "^7.0.0"
50+
"vite": "^8.0.0"
5151
},
5252
"repository": {
5353
"type": "git",

0 commit comments

Comments
 (0)