Skip to content

Commit

Permalink
added workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
shafeeqd959 committed Sep 12, 2024
1 parent 6cbd564 commit 3d2b643
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,22 @@ jobs:
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/contentstack-utilities/package.json
- name: Installing dependencies of variants
id: variants-installation
if: ${{env.release_releaseAll == 'true' || env.release_plugins_utilities == 'true'}}
working-directory: ./packages/contentstack-variants
run: npm install
- name: Compiling variants
if: ${{ steps.variants-installation.conclusion == 'success' }}
working-directory: ./packages/contentstack-variants
run: npm run prepack
- name: Publishing variants
uses: JS-DevTools/npm-publish@v2.2.1
if: ${{ steps.variants-installation.conclusion == 'success' }}
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/contentstack-variants/package.json
access: public
- name: Installing dependencies of command
id: command-installation
if: ${{env.release_releaseAll == 'true' || env.release_plugins_command == 'true'}}
Expand Down
4 changes: 3 additions & 1 deletion packages/contentstack-variants/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
},
"dependencies": {
"@contentstack/cli-utilities": "^1.5.12",
"lodash": "^4.17.21"
"lodash": "^4.17.21",
"mkdirp": "^1.0.4",
"winston": "^3.7.2"
}
}

0 comments on commit 3d2b643

Please sign in to comment.