Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
cd3a7ee
Merge pull request #44 from contentstack/main
cs-raj Jan 11, 2025
600f750
added support for nested global field
Jan 12, 2025
162c715
Merge pull request #45 from contentstack/feat/DX-1882
naman-contentstack Jan 15, 2025
cd4d235
[DX-1941], updated workflow to automate the release process
Jan 16, 2025
f0b23a2
add workflow for test and automated release, commented old release wo…
Jan 16, 2025
4c3bf08
updated lock file
Jan 16, 2025
43f0112
added config to clean dependencies before test
Jan 16, 2025
5727a4e
workflow updated to run npm i
Jan 16, 2025
0f5ac97
removed build command while test
Jan 16, 2025
33a358c
added command for npm ci
Jan 16, 2025
89f8760
added rollup to resolve workflow errors
Jan 16, 2025
b5ed09e
deleted commented workflow files
Jan 16, 2025
487022d
update config of release workflow
Jan 17, 2025
4d9be2a
Merge pull request #46 from contentstack/feat/DX-1941
naman-contentstack Jan 17, 2025
fbd3f65
[DX-1992], added fix for nested global fields
Jan 27, 2025
6974bc7
fixed test cases
Jan 30, 2025
971a9a0
updated test cases and optimized logic
Jan 31, 2025
1dc297f
Merge pull request #47 from contentstack/fix/DX-1882
naman-contentstack Jan 31, 2025
8ea5998
Minor version bump
Jan 31, 2025
390f327
Merge branch 'development' into feat/nested_global_field
Jan 31, 2025
301730d
Merge pull request #49 from contentstack/feat/nested_global_field
naman-contentstack Jan 31, 2025
0d9ed67
updated lock file
Jan 31, 2025
4d9358b
Merge pull request #51 from contentstack/update-lock-file
naman-contentstack Jan 31, 2025
2cedb2f
Merge branch 'main' into development
harshithad0703 Feb 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on:
push:
branches: [master, development]
pull_request:
branches: [master, development]

jobs:
build:
runs-on: ubuntu-latest

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

steps:
- uses: actions/checkout@v3.5.3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3.7.0
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm test
env:
TOKEN: ${{secrets.TOKEN}}
TOKEN_WITH_NO_CT: ${{secrets.TOKEN_WITH_NO_CT}}
APIKEY: ${{secrets.APIKEY}}
APIKEY_WITH_NO_CT: ${{secrets.APIKEY_WITH_NO_CT}}
ENVIRONMENT: ${{secrets.ENVIRONMENT}}
REGION: ${{secrets.REGION}}
TOKENTYPE: ${{secrets.TOKENTYPE}}
BRANCH: ${{secrets.BRANCH}}
45 changes: 0 additions & 45 deletions .github/workflows/npm-publish-github-packages.yml

This file was deleted.

42 changes: 0 additions & 42 deletions .github/workflows/npm-publish.yml

This file was deleted.

72 changes: 72 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: Publish package to NPM and Git registry

on:
push:
branches:
- main

jobs:
build:
name: Build and upload
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3.5.3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3.7.0
with:
node-version: "18.x"
- name: Install dependencies
run: npm install
- name: Build
run: |
rm -rf dist
npm run prepare
- name: Upload dist
uses: actions/upload-artifact@v3.1.2
with:
name: dist
path: dist

release:
name: Download dist and release
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout
uses: actions/checkout@v3.5.3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3.7.0
with:
node-version: "18.x"
- name: Install dependencies
run: npm install
- name: Download dist
uses: actions/download-artifact@v3
with:
name: dist
path: dist
- name: Display dirs
run: ls -R
- uses: Klemensas/action-autotag@1.2.3
id: update_tag
with:
GITHUB_TOKEN: "${{ secrets.PKG_TOKEN }}"
tag_prefix: "v"
- name: Release
if: steps.update_tag.outputs.tagname
id: release-plugin
uses: JS-DevTools/npm-publish@v2.2.0
with:
token: ${{ secrets.TYPES_GENERATOR_AUTOMATION }}
strategy: upgrade
- name: GitHub Release
if: steps.update_tag.outputs.tagname
id: github-release
env:
GITHUB_TOKEN: ${{ secrets.PKG_TOKEN }}
run: gh release create v${{ steps.release-plugin.outputs.version }} --title "Release ${{ steps.release-plugin.outputs.version }}" --generate-notes
Loading