Skip to content
Merged
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
16 changes: 9 additions & 7 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
push:
branches: [main]

permissions:
id-token: write # Required for OIDC
contents: write

# what the action will do
jobs:
release:
Expand All @@ -18,16 +22,14 @@ jobs:
- uses: actions/checkout@v2
- name: Prepare repository
run: git fetch --unshallow --tags
- name: Use Node.js 18.x
- name: Use Node.js 24.x
uses: actions/setup-node@v1
with:
node-version: 18.x
node-version: 24.x
- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#👇 npm token, see https://storybook.js.org/tutorials/design-systems-for-developers/react/en/distribute/ to obtain it
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
yarn --frozen-lockfile
yarn run build
yarn run release
npm ci
npm run build
npm run release
6 changes: 3 additions & 3 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ jobs:
- uses: actions/checkout@v2
- name: Prepare repository
run: git fetch --unshallow --tags
- name: Use Node.js 18.x
- name: Use Node.js 24.x
uses: actions/setup-node@v2
with:
node-version: "18"
node-version: "24"
- name: Publish storybook
id: storybook
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
yarn --frozen-lockfile
npm ci
npx chromatic --project-token ${{ secrets.CHROMATIC_TOKEN }} --exit-zero-on-changes --ci
Loading