Skip to content

Commit

Permalink
Merge pull request #11 from Contentstack-Solutions/feat/CS-39922
Browse files Browse the repository at this point in the history
feat/CS-39922 - Modified release.yml to auto generate release notes, used JS-DevTool/npm-publishv2.2.0
  • Loading branch information
aman19K authored Jul 31, 2023
2 parents 49cd943 + 47ba714 commit 19161a8
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 74 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:

strategy:
matrix:
node-version: [16.x, 18.x]
node-version: [18.x, 20.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3.5.3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3.7.0
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
Expand Down
22 changes: 14 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3.5.3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3.7.0
with:
node-version: "16.x"
node-version: "18.x"
- name: Installing dependencies
run: npm install
- name: Build
run: npm run prepack
- name: Upload dist
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v3.1.2
with:
name: lib
path: lib
Expand All @@ -32,13 +32,13 @@ jobs:
needs: build
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3.5.3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3.7.0
with:
node-version: "16.x"
node-version: "18.x"
- name: Installing dependencies
run: npm install
- name: Download dist
Expand All @@ -49,6 +49,12 @@ jobs:
- name: Display dirs
run: ls -R
- name: Release
uses: JS-DevTools/npm-publish@v1
id: release-plugin
uses: JS-DevTools/npm-publish@v2.2.0
with:
token: ${{ secrets.NPM_TOKEN }}
- name: github-release
id: github-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release create v${{ steps.release-plugin.outputs.version }} --title "Release ${{ steps.release-plugin.outputs.version }}" --generate-notes
11 changes: 11 additions & 0 deletions .github/workflows/sast-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: SAST Scan
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.3
- name: Horusec Scan
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)
124 changes: 62 additions & 62 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "contentstack-cli-content-type",
"description": "Retrieve information about Content Types in a Stack.",
"version": "1.1.0",
"version": "1.1.1",
"author": "Michael Davis",
"bugs": "https://github.com/Contentstack-Solutions/contentstack-cli-content-type/issues",
"dependencies": {
Expand Down

0 comments on commit 19161a8

Please sign in to comment.