-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
5 changed files
with
91 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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/[email protected] | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | ||
- 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) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters