Skip to content

Commit 19161a8

Browse files
authored
Merge pull request #11 from Contentstack-Solutions/feat/CS-39922
feat/CS-39922 - Modified release.yml to auto generate release notes, used JS-DevTool/npm-publishv2.2.0
2 parents 49cd943 + 47ba714 commit 19161a8

File tree

5 files changed

+91
-74
lines changed

5 files changed

+91
-74
lines changed

.github/workflows/node.js.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
node-version: [16.x, 18.x]
19+
node-version: [18.x, 20.x]
2020

2121
steps:
22-
- uses: actions/checkout@v2
22+
- uses: actions/checkout@v3.5.3
2323
- name: Use Node.js ${{ matrix.node-version }}
24-
uses: actions/setup-node@v1
24+
uses: actions/setup-node@v3.7.0
2525
with:
2626
node-version: ${{ matrix.node-version }}
2727
- run: npm ci

.github/workflows/release.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout
12-
uses: actions/checkout@v2
12+
uses: actions/checkout@v3.5.3
1313
with:
1414
fetch-depth: 0
1515
- name: Setup Node.js
16-
uses: actions/setup-node@v1
16+
uses: actions/setup-node@v3.7.0
1717
with:
18-
node-version: "16.x"
18+
node-version: "18.x"
1919
- name: Installing dependencies
2020
run: npm install
2121
- name: Build
2222
run: npm run prepack
2323
- name: Upload dist
24-
uses: actions/upload-artifact@v3
24+
uses: actions/upload-artifact@v3.1.2
2525
with:
2626
name: lib
2727
path: lib
@@ -32,13 +32,13 @@ jobs:
3232
needs: build
3333
steps:
3434
- name: Checkout
35-
uses: actions/checkout@v2
35+
uses: actions/checkout@v3.5.3
3636
with:
3737
fetch-depth: 0
3838
- name: Setup Node.js
39-
uses: actions/setup-node@v1
39+
uses: actions/setup-node@v3.7.0
4040
with:
41-
node-version: "16.x"
41+
node-version: "18.x"
4242
- name: Installing dependencies
4343
run: npm install
4444
- name: Download dist
@@ -49,6 +49,12 @@ jobs:
4949
- name: Display dirs
5050
run: ls -R
5151
- name: Release
52-
uses: JS-DevTools/npm-publish@v1
52+
id: release-plugin
53+
uses: JS-DevTools/npm-publish@v2.2.0
5354
with:
5455
token: ${{ secrets.NPM_TOKEN }}
56+
- name: github-release
57+
id: github-release
58+
env:
59+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60+
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: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: SAST Scan
2+
on:
3+
pull_request:
4+
types: [opened, synchronize, reopened]
5+
jobs:
6+
security:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3.5.3
10+
- name: Horusec Scan
11+
run: docker run -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd):/src horuszup/horusec-cli:latest horusec start -p /src -P $(pwd)

package-lock.json

Lines changed: 62 additions & 62 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "contentstack-cli-content-type",
33
"description": "Retrieve information about Content Types in a Stack.",
4-
"version": "1.1.0",
4+
"version": "1.1.1",
55
"author": "Michael Davis",
66
"bugs": "https://github.com/Contentstack-Solutions/contentstack-cli-content-type/issues",
77
"dependencies": {

0 commit comments

Comments
 (0)