Skip to content

Commit d4eec29

Browse files
committed
update ci
1 parent 395c27e commit d4eec29

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.github/workflows/publish.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
tags: [ 'v*' ]
66

7+
permissions:
8+
contents: write
9+
710
jobs:
811
generate-manifest-json:
912
runs-on: ubuntu-latest
@@ -29,7 +32,7 @@ jobs:
2932
sudo lua -e '
3033
require("metadata");
3134
local dkjson = require("dkjson");
32-
PLUGIN.downloadUrl = "https://github.com/${{ github.repository }}/releases/download/v${{ env.VERSION }}/${{ env.REPO_NAME }}_${{ env.VERSION }}.zip";
35+
PLUGIN.downloadUrl = "https://github.com/${{ github.repository }}/releases/download/v${{ env.VERSION }}/${{ env.REPO_NAME }}-${{ env.VERSION }}.zip";
3336
local str = dkjson.encode(PLUGIN);
3437
print(str)' > manifest.json
3538
cat manifest.json
@@ -57,7 +60,7 @@ jobs:
5760
with:
5861
type: "zip"
5962
directory: "./"
60-
filename: "${{ env.REPO_NAME }}_${{ env.VERSION }}.zip"
63+
filename: "${{ env.REPO_NAME }}-${{ env.VERSION }}.zip"
6164
exclusions: "*.git* manifest.json"
6265
- name: Publish release
6366
uses: svenstaro/upload-release-action@v2
@@ -73,4 +76,4 @@ jobs:
7376
file: ./manifest.json
7477
tag: "manifest"
7578
overwrite: true
76-
file_glob: true
79+
file_glob: true

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ Node.js plugin for [vfox](https://vfox.lhan.me/).
77
After installing [vfox](https://github.com/version-fox/vfox), install the plugin by running:
88

99
```bash
10-
vfox install nodejs
10+
vfox add nodejs
1111
```
1212

metadata.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ PLUGIN = {}
55
--- Plugin name
66
PLUGIN.name = "nodejs"
77
--- Plugin version
8-
PLUGIN.version = "0.0.5"
8+
PLUGIN.version = "0.1.1"
99
--- Plugin repository
1010
PLUGIN.homepage = "https://github.com/version-fox/vfox-nodejs"
1111
--- Plugin license
@@ -15,7 +15,7 @@ PLUGIN.description = "Node.js runtime environment."
1515

1616
--- !!! OPTIONAL !!!
1717
-- minimum compatible vfox version
18-
PLUGIN.minRuntimeVersion = "0.2.6"
18+
PLUGIN.minRuntimeVersion = "0.3.0"
1919
-- Some things that need user to be attention!
2020
PLUGIN.notes = {}
2121

0 commit comments

Comments
 (0)