Skip to content

Commit c656d83

Browse files
authored
Merge pull request #41 from Contentstack-Solutions/bugfix/CS-40488
CS-40488 - Release workflow Updated
2 parents ea40fc5 + b6b23bc commit c656d83

File tree

4 files changed

+49
-40
lines changed

4 files changed

+49
-40
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,20 @@ jobs:
4848
path: lib
4949
- name: Display dirs
5050
run: ls -R
51+
- uses: Klemensas/[email protected]
52+
id: update_tag
53+
with:
54+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
55+
tag_prefix: "v"
5156
- name: Release
57+
if: steps.update_tag.outputs.tagname
5258
id: release-plugin
5359
uses: JS-DevTools/[email protected]
5460
with:
5561
token: ${{ secrets.NPM_TOKEN }}
62+
strategy: upgrade
5663
- name: github-release
64+
if: steps.update_tag.outputs.tagname
5765
id: github-release
5866
env:
5967
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package-lock.json

Lines changed: 38 additions & 38 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-tsgen",
33
"description": "Generate TypeScript typings from a Stack.",
4-
"version": "2.1.5",
4+
"version": "2.1.6",
55
"author": "Michael Davis",
66
"bugs": "https://github.com/Contentstack-Solutions/contentstack-cli-tsgen/issues",
77
"dependencies": {

src/lib/stack/client.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const REGION_URL_MAPPING: RegionUrlMap = {
1111
us: 'cdn.contentstack.io',
1212
eu: 'eu-cdn.contentstack.com',
1313
'azure-na': 'azure-na-cdn.contentstack.com',
14+
'azure-eu': 'azure-eu-cdn.contentstack.com',
1415
}
1516

1617
export type StackConnectionConfig = {
@@ -30,7 +31,7 @@ const queryParams = {
3031

3132
export async function stackConnect(client: any, config: StackConnectionConfig) {
3233
try {
33-
const clientParams: {
34+
const clientParams: {
3435
api_key: string,
3536
delivery_token: string,
3637
environment: string,

0 commit comments

Comments
 (0)