ti2-ventrata 1.0.3

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.
package/.eslintrc.js ADDED
@@ -0,0 +1,45 @@
1
+ module.exports = {
2
+ env: {
3
+ browser: true,
4
+ commonjs: true,
5
+ es2021: true,
6
+ },
7
+ extends: [
8
+ 'airbnb-base',
9
+ ],
10
+ parserOptions: {
11
+ ecmaVersion: 'latest',
12
+ },
13
+ rules: {
14
+ 'implicit-arrow-linebreak': 0,
15
+ 'operator-linebreak': 0,
16
+ 'prefer-template': 2,
17
+ 'arrow-parens': [
18
+ 2,
19
+ 'as-needed',
20
+ {
21
+ requireForBlockBody: false,
22
+ },
23
+ ],
24
+ 'prefer-arrow-callback': 2,
25
+ 'no-unused-vars': [
26
+ 2,
27
+ {
28
+ argsIgnorePattern: '^_*$',
29
+ },
30
+ ],
31
+ 'no-use-before-define': 0,
32
+ 'no-console': 0,
33
+ 'new-cap': 0,
34
+ 'no-underscore-dangle': [
35
+ 'error',
36
+ {
37
+ allow: [
38
+ '_id',
39
+ '__',
40
+ 'resource_id',
41
+ ],
42
+ },
43
+ ],
44
+ },
45
+ };
@@ -0,0 +1,43 @@
1
+ name: Node.js Package
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ push:
6
+
7
+ jobs:
8
+ build_and_test:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v2
12
+ - uses: actions/setup-node@v1
13
+ with:
14
+ node-version: 12
15
+ - run: npm ci
16
+ - run: npm run build --if-present
17
+ - run: npm test
18
+ env:
19
+ ti2_ventrata_endpoint: 'https://api.ventrata.com/octo'
20
+ ti2_ventrata_apiKey: ${{ secrets.VENTRATA_APIKEY }}
21
+ ti2_ventrata_octoEnv: 'test'
22
+ ti2_ventrata_acceptLanguage: 'en'
23
+ ti2_ventrata_jwtKey: 'Reliance-Overload4-Lyrics'
24
+ tag:
25
+ if: github.ref == 'refs/heads/main'
26
+ needs: build_and_test
27
+ runs-on: ubuntu-latest
28
+ steps:
29
+ - uses: actions/checkout@v2
30
+ - uses: tool3/bump@master
31
+ with:
32
+ github_token: ${{ secrets.GITHUB_TOKEN }}
33
+ unrelated: true
34
+ branch: main
35
+ publish-npm:
36
+ if: github.ref == 'refs/heads/main'
37
+ needs: tag
38
+ runs-on: ubuntu-latest
39
+ steps:
40
+ - uses: actions/checkout@v1
41
+ - uses: JS-DevTools/npm-publish@v1
42
+ with:
43
+ token: ${{ secrets.NPM_TOKEN }}