Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 22 additions & 8 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ name: github pages
on:
push:
branches:
- develop # Set a branch name to trigger deployment
- develop

jobs:
deploy:
build:
runs-on: ubuntu-latest
timeout-minutes: ${{ fromJSON(vars.DEFAULT_JOB_TIMEOUT_MINUTES) }}

steps:
- uses: actions/checkout@v4

Expand All @@ -25,16 +26,29 @@ jobs:
restore-keys: |
${{ runner.os }}-node-

- run: npm install -g sass
- run: npm ci
- run: npm test

- name: Build
run: npm run build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/develop'
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./storybook-static
path: ./storybook-static

deploy:
needs: build
permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v4
4 changes: 3 additions & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:

permissions:
id-token: write # Required for OIDC https://docs.npmjs.com/trusted-publishers
contents: read

jobs:
dry-run:
Expand All @@ -16,6 +17,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: "22"
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- name: Check formatting
run: make format-check
Expand All @@ -41,4 +43,4 @@ jobs:
- name: Update npm
run: npm install -g npm@latest
- name: Publish
run: npm publish
run: npm publish --provenance --access public
Loading