Skip to content

Commit

Permalink
workflow and ssBtn updated
Browse files Browse the repository at this point in the history
  • Loading branch information
devPragnenkumar committed Sep 3, 2024
1 parent fc317d6 commit 93fb84a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
description: "The directory where the action should run."
required: true
type: string
npm_publish_workflow:
description: "npm publish workflow"
required: true
type: string

jobs:
publish-package:
Expand All @@ -27,4 +31,4 @@ jobs:
- name: Publish Shared Components to npm
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_WORKFLOW }}
NODE_AUTH_TOKEN: ${{ inputs.npm_publish_workflow }}
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
uses: ./.github/workflows/publish-package.yml
with:
working-directory: package/ss-button
npm_publish_workflow: ${{ secrets.NPM_PUBLISH_WORKFLOW }}

ssHeader:
needs: changes
Expand All @@ -63,6 +64,7 @@ jobs:
uses: ./.github/workflows/publish-package.yml
with:
working-directory: package/ss-header
npm_publish_workflow: ${{ secrets.NPM_PUBLISH_WORKFLOW }}

publish-storybook:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion package/ss-button/src/btn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ function Btn({ label }: Readonly<{ label: string }>) {
return (
<button
onClick={() => {
window.alert("SS button clicked");
window.alert("SS button clicked updated");
}}
>
{label}
Expand Down

0 comments on commit 93fb84a

Please sign in to comment.