Skip to content

Commit b9811c3

Browse files
authored
Merge pull request #1558 from contentstack/next-feature-update
added workflow
2 parents bff053a + 24d09e8 commit b9811c3

5 files changed

Lines changed: 154 additions & 116 deletions

File tree

.github/workflows/release.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,22 @@ jobs:
5252
with:
5353
token: ${{ secrets.NPM_TOKEN }}
5454
package: ./packages/contentstack-utilities/package.json
55+
- name: Installing dependencies of variants
56+
id: variants-installation
57+
if: ${{env.release_releaseAll == 'true' || env.release_plugins_utilities == 'true'}}
58+
working-directory: ./packages/contentstack-variants
59+
run: npm install
60+
- name: Compiling variants
61+
if: ${{ steps.variants-installation.conclusion == 'success' }}
62+
working-directory: ./packages/contentstack-variants
63+
run: npm run prepack
64+
- name: Publishing variants
65+
uses: JS-DevTools/npm-publish@v2.2.1
66+
if: ${{ steps.variants-installation.conclusion == 'success' }}
67+
with:
68+
token: ${{ secrets.NPM_TOKEN }}
69+
package: ./packages/contentstack-variants/package.json
70+
access: public
5571
- name: Installing dependencies of command
5672
id: command-installation
5773
if: ${{env.release_releaseAll == 'true' || env.release_plugins_command == 'true'}}

0 commit comments

Comments
 (0)