Skip to content

Commit fb7cd1d

Browse files
authored
Merge pull request #12 from contentstack/release/sprint_42
Security and workflow fixes
2 parents 62f8de4 + cfd3dac commit fb7cd1d

14 files changed

+7863
-3049
lines changed

Diff for: .github/workflows/release.yml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches: [master]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v1
13+
with:
14+
node-version: "16.x"
15+
- run: npm install
16+
17+
- name: get-package-details
18+
id: package
19+
uses: codex-team/[email protected]
20+
- name: install npm packall
21+
run: npm install npm-pack-all
22+
23+
- run: node node_modules/.bin/npm-pack-all
24+
- uses: Klemensas/action-autotag@stable
25+
id: update_tag
26+
with:
27+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
28+
tag_prefix: "v"
29+
- name: Create Release
30+
if: steps.update_tag.outputs.tagname
31+
uses: actions/create-release@v1
32+
id: create_release
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
35+
with:
36+
tag_name: ${{ steps.update_tag.outputs.tagname }}
37+
release_name: Release ${{ steps.update_tag.outputs.tagname }}
38+
draft: false # Default value, but nice to set explicitly
39+
prerelease: false # Default value, but nice to set explicitly
40+
- name: Upload Release Asset
41+
if: steps.update_tag.outputs.tagname
42+
id: upload-release-asset
43+
uses: actions/upload-release-asset@v1
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
with:
47+
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing its ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
48+
asset_path: ./${{ steps.package.outputs.name }}-${{ steps.package.outputs.version }}.tgz
49+
asset_name: ${{ steps.package.outputs.name }}-${{ steps.package.outputs.version }}.tgz
50+
asset_content_type: application/tgz

Diff for: .github/workflows/sast-scan.yml

-11
This file was deleted.

Diff for: .github/workflows/secrets-scan.yml

-11
This file was deleted.

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ example/**/*
1212
playground
1313
newQueryBuilder.ts
1414
query-builder.ts
15+
dist

Diff for: .talismanrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
fileignoreconfig:
22
- filename: package-lock.json
3-
checksum: 218e63a11ff5af63d734e6facf8d71a2965870700eadf98c423ac74839036a46
3+
checksum: a618ae6c113021eef425f224f1dfd7066b15af1a45249ea063a193517ce5a92f
44
version: ""

Diff for: LICENCE

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License
22

3-
Copyright (c) 2022 Contentstack LLC <https://www.contentstack.com/>
3+
Copyright (c) 2023 Contentstack LLC <https://www.contentstack.com/>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21-
THE SOFTWARE.
21+
THE SOFTWARE.

Diff for: dist/config.js

-50
This file was deleted.

Diff for: dist/index.js

-42
This file was deleted.

0 commit comments

Comments
 (0)