Skip to content

Commit ffcfe15

Browse files
Merge pull request #73 from contentstack/development
Main <- Development
2 parents f646b06 + 78d344c commit ffcfe15

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+21477
-11312
lines changed

.eslintrc

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
{
2-
"rules": {
3-
"arrow-parens": "off",
4-
"object-curly-spacing": "off",
5-
"comma-dangle": "off",
6-
"unicorn/no-abusive-eslint-disable": "off",
7-
"@typescript-eslint/no-use-before-define": "off",
8-
"@typescript-eslint/no-explicit-any": "off",
9-
"@typescript-eslint/no-var-requires": "off",
10-
"@typescript-eslint/ban-ts-ignore": "off",
11-
"@typescript-eslint/no-empty-function": "off"
12-
},
13-
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
14-
"plugins": ["@typescript-eslint"],
15-
"parser": "@typescript-eslint/parser",
16-
"root": true
2+
"extends": [
3+
"oclif",
4+
"oclif-typescript"
5+
]
176
}

.github/workflows/automerge.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/workflows/failureNotifications.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

.github/workflows/jira.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
if: ${{ github.actor == 'dependabot[bot]' || github.actor == 'snyk-bot' || contains(github.event.pull_request.head.ref, 'snyk-fix-') || contains(github.event.pull_request.head.ref, 'snyk-upgrade-')}}
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v2
10+
- uses: actions/checkout@v3.5.3
1111
- name: Login into JIRA
1212
uses: atlassian/gajira-login@master
1313
env:

.github/workflows/manualRelease.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

.github/workflows/notify-slack-on-pr-open.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/onPushToMain.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/onRelease.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
build:
8+
name: Build and upload
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v3.5.3
13+
with:
14+
fetch-depth: 0
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v3.7.0
17+
with:
18+
node-version: "18.x"
19+
- name: Installing dependencies
20+
run: npm install
21+
- name: Build
22+
run: npm run prepack
23+
- name: Upload dist
24+
uses: actions/upload-artifact@v3.1.2
25+
with:
26+
name: lib
27+
path: lib
28+
29+
release:
30+
name: Download dist and release
31+
runs-on: ubuntu-latest
32+
needs: build
33+
steps:
34+
- name: Checkout
35+
uses: actions/checkout@v3.5.3
36+
with:
37+
fetch-depth: 0
38+
- name: Setup Node.js
39+
uses: actions/setup-node@v3.7.0
40+
with:
41+
node-version: "18.x"
42+
- name: Installing dependencies
43+
run: npm install
44+
- name: Download dist
45+
uses: actions/download-artifact@v3
46+
with:
47+
name: lib
48+
path: lib
49+
- name: Display dirs
50+
run: ls -R
51+
- name: Release
52+
id: release-plugin
53+
uses: JS-DevTools/npm-publish@v2.2.0
54+
with:
55+
token: ${{ secrets.NPM_TOKEN }}
56+
access: public
57+
- name: get-npm-version
58+
id: package-version
59+
uses: martinbeentjes/npm-get-version-action@v1.3.1
60+
- name: github-release
61+
id: github-release
62+
env:
63+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64+
run: gh release create v${{ steps.release-plugin.outputs.version }} --title "Release ${{ steps.release-plugin.outputs.version }}" --generate-notes

.github/workflows/sast-scan.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)