Skip to content

Commit 4e94631

Browse files
committed
formatting
1 parent 7d49599 commit 4e94631

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

nodejs-setup-project.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ push:
1111
```
1212
1313
3. It specifies the Node.js version that will be used for building your project:
14+
1415
```yml
1516
- name: Set up Node.Js
1617
uses: actions/setup-node@v2
@@ -19,6 +20,7 @@ push:
1920
```
2021
2122
4. The project's release version is obtained from your plugin.json automatically by the ci, so when built it will be appended to the zip file later:
23+
2224
```yml
2325
- name: get version
2426
id: version
@@ -28,7 +30,8 @@ push:
2830
prop_path: 'Version'
2931
```
3032
31-
5. The 'Install dependencies' section is where you will do most of your CI work. It will run `npm install`, which will output all the dependencies specified in package.json into the 'node_modules' directory. The workflow will then zip them up along with your project using the `zip -r Flow.Launcher.Plugin.HelloWorldNodeJS.zip . -x '*.git*'`, where you replace this `Flow.Launcher.Plugin.HelloWorldNodeJS` with the name of your plugin.
33+
5. The 'Install dependencies' section is where you will do most of your CI work. It will run `npm install`, which will output all the dependencies specified in package.json into the 'node_modules' directory. The workflow will then zip them up along with your project using `zip -r Flow.Launcher.Plugin.HelloWorldNodeJS.zip . -x '*.git*'`, where you replace this `Flow.Launcher.Plugin.HelloWorldNodeJS` with the name of your plugin.
34+
3235
```yml
3336
- name: Install dependencies
3437
run: |
@@ -38,6 +41,7 @@ push:
3841

3942
### 2. Publish as zip
4043
The final step to the workflow file is this publish section, which will publish the zip file you generated, upload to GitHub Releases page and tag with the version generated from the previous step from your plugin.json file. Remember again to replace `Flow.Launcher.Plugin.HelloWorldNodeJS` with the name of your plugin.
44+
4145
```yml
4246
- name: Publish
4347
uses: softprops/action-gh-release@v1

0 commit comments

Comments
 (0)