Skip to content

Commit f228410

Browse files
committed
Modified release.yml file and Version Bump
1 parent 49cd943 commit f228410

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ jobs:
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
3939
uses: actions/setup-node@v1
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

package-lock.json

Lines changed: 2 additions & 2 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)