Skip to content

Commit

Permalink
chore: add script to deprecate solar theme when release (#1202)
Browse files Browse the repository at this point in the history
* chore: add script to deprecate solar theme when release

* chore: add message to deprecate script

* chore: update deprecation message

* chore: update deprecation message
  • Loading branch information
bualoy-napat authored Jul 26, 2024
1 parent 53e30de commit 50efc7f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/pre_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,8 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Deprecate Solar Theme on npm
run: npm deprecate @refinitiv-ui/solar-theme "Solar theme is deprecated. Consider migrating to @refinitiv-ui/halo-theme instead."
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5 changes: 5 additions & 0 deletions .github/workflows/prod_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,10 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Deprecate Solar Theme on npm
run: npm deprecate @refinitiv-ui/solar-theme "Solar theme is deprecated. Consider migrating to @refinitiv-ui/halo-theme instead."
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish Docs
run: curl -X POST "https://api.cloudflare.com/client/v4/pages/webhooks/deploy_hooks/${{ secrets.CF_DEPLOY_HOOKS_ID }}"

0 comments on commit 50efc7f

Please sign in to comment.