Skip to content

Commit 14ed1a8

Browse files
Merge pull request #9 from contentstack/release-workflow
added workflow, delete dist folder
2 parents d81b383 + 0fbf18c commit 14ed1a8

File tree

13 files changed

+184
-4772
lines changed

13 files changed

+184
-4772
lines changed

.github/workflows/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release datasync content store mongodb
2+
on:
3+
push:
4+
branches: [master]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3.5.3
10+
- uses: actions/setup-node@v3.7.0
11+
with:
12+
node-version: "18.x"
13+
- name: Installing dependencies
14+
run: npm install
15+
- name: Build
16+
run: npm run build-ts
17+
- name: Publishing datasync content store mongodb
18+
id: release-plugin
19+
uses: JS-DevTools/npm-publish@v2.2.0
20+
with:
21+
token: ${{ secrets.NPM_TOKEN }}
22+
- name: github-release
23+
if: steps.release-plugin.outputs.version
24+
id: github-release
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
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.

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ example/*
1111

1212
# Config files
1313
jest.config.js
14-
tsconfig.json
1514
.jsbeautifyrc
15+
16+
dist/

dist/config.js

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

dist/connection.js

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

dist/index.js

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

0 commit comments

Comments
 (0)