Update drawer site docs (#4014) #1820
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
name: Release | |
on: | |
push: | |
branches: | |
- main | |
- release-ag-grid-theme-v1 | |
permissions: | |
contents: write | |
deployments: write | |
pull-requests: write | |
id-token: write | |
jobs: | |
release: | |
name: Release | |
if: github.repository == 'jpmorganchase/salt-ds' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
cache: "yarn" | |
registry-url: "https://registry.npmjs.org" | |
- name: Install dependencies | |
run: yarn install | |
- name: Build | |
run: yarn build | |
- name: Create Release Pull Request or Publish packages | |
id: changesets | |
uses: changesets/action@v1 | |
with: | |
publish: yarn changeset publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
NPM_CONFIG_PROVENANCE: true | |
- name: Run Storybook build | |
run: yarn build-storybook | |
env: | |
NODE_OPTIONS: "--max_old_space_size=6144" | |
- name: Publish Storybook | |
uses: cloudflare/pages-action@v1 | |
with: | |
apiToken: ${{ secrets.CLOUDFLARE_SALT_API_TOKEN }} | |
accountId: ${{ secrets.CLOUDFLARE_SALT_ACCOUNT_ID }} | |
projectName: "saltdesignsystem-storybook" | |
directory: ./storybook-static | |
gitHubToken: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.head_ref || github.ref_name }} |