@kapeta/local-cluster-service 0.0.75 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,13 @@
1
+ const FS = require("node:fs");
2
+ const YAML = require("yaml");
3
+
4
+
5
+ exports.readYML = function readYML(path) {
6
+ let rawYaml = FS.readFileSync(path);
7
+
8
+ try {
9
+ return YAML.parse(rawYaml.toString());
10
+ } catch(err) {
11
+ throw new Error('Failed to parse plan YAML: ' + err);
12
+ }
13
+ }
@@ -1,18 +0,0 @@
1
- name: Check
2
-
3
- on: [pull_request]
4
-
5
- jobs:
6
- build:
7
-
8
- runs-on: ubuntu-latest
9
-
10
- steps:
11
- - uses: actions/checkout@v2
12
- - uses: actions/setup-node@v3
13
- with:
14
- node-version: 18
15
- registry-url: https://registry.npmjs.org/
16
- - run: npm install
17
- env:
18
- CI: true
@@ -1,20 +0,0 @@
1
- name: Publish to Kapeta Public NPM
2
- on:
3
- push:
4
- branches:
5
- - master
6
- jobs:
7
- build:
8
- runs-on: ubuntu-latest
9
- steps:
10
- - uses: actions/checkout@v2
11
- - uses: actions/setup-node@v3
12
- with:
13
- node-version: 18
14
- registry-url: https://registry.npmjs.org/
15
- scope: '@kapeta'
16
-
17
- - run: npm install
18
- - run: npm publish --access public
19
- env:
20
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}