Jm/add icon color prop to button (#111) #97
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Publish packages to NPM using RushJS | |
name: Publish packages | |
on: | |
push: | |
branches: [main] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
# Fetch repo with entire git history | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.BOT_DUCKY_ACCESS_TOKEN_ADMIN_REPO }} | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
# Set up GitHub user to https://github.com/BotDucky | |
- name: git config email | |
run: git config --local user.email "[email protected]" | |
- name: git config name | |
run: git config --local user.name BotDucky | |
# Make sure Change logs are properly documented | |
- name: Verify Change Logs | |
run: node common/scripts/install-run-rush.js change --verify | |
# Install all dependencies | |
- name: Rush Install | |
run: node common/scripts/install-run-rush.js install | |
# Build all projects | |
- name: Rush Rebuild | |
run: node common/scripts/install-run-rush.js rebuild | |
# Publish packages, delete temporary change logs files, commit and push updated change logs | |
- name: Rush Publish | |
run: node common/scripts/install-run-rush.js publish --publish --apply --target-branch main | |
env: | |
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
# Build Storybook | |
- name: Storybook build | |
run: node common/scripts/install-run-rush.js build-storybook --from @ducky/plumage | |
# Publish Storybook | |
- name: Storybook Publish | |
uses: actions-hub/gcloud@master | |
env: | |
PROJECT_ID: ${{ secrets.STORYBOOK_GCP_PROJECT_ID }} | |
APPLICATION_CREDENTIALS: ${{ secrets.STORYBOOK_GCP_APPLICATION_CREDENTIALS }} | |
with: | |
args: -h 'Cache-Control:public, max-age=36000' cp -r ./packages/component-library/storybook-static/* gs://components.ducky.eco | |
cli: gsutil | |
# Storybook: Set max-age on index.html to 5 minutes | |
- name: Storybook Metadata set index.html | |
uses: actions-hub/gcloud@master | |
env: | |
PROJECT_ID: ${{ secrets.STORYBOOK_GCP_PROJECT_ID }} | |
APPLICATION_CREDENTIALS: ${{ secrets.STORYBOOK_GCP_APPLICATION_CREDENTIALS }} | |
with: | |
args: -m setmeta -h 'Cache-Control:public, max-age=300' gs://components.ducky.eco/index.html gs://components.ducky.eco/iframe.html gs://components.ducky.eco/build/* | |
cli: gsutil |