Skip to content
Draft
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
5 changes: 5 additions & 0 deletions .changeset/brisk-sparrows-glow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@storybook/addon-webpack5-compiler-babel': patch
---

Add provenance to npm releases
15 changes: 15 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
"changelog": [
"@changesets/changelog-github",
{
"repo": "storybookjs/addon-webpack5-compiler-babel"
}
],
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch"
}
40 changes: 40 additions & 0 deletions .github/workflows/publish-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Publish preview

on:
pull_request:
push:
branches:
- main

env:
CI: true
COREPACK_INTEGRITY_KEYS: 0

jobs:
release-preview:
name: Publish preview releases
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

- name: Enable corepack (for pnpm)
run: corepack enable

- name: Resolve Node.js version
id: node-version
run: echo "version=$(if [ -f .nvmrc ]; then cat .nvmrc; else echo 22; fi)" >> "$GITHUB_OUTPUT"

- name: Setup Node.js
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
cache: pnpm
node-version: ${{ steps.node-version.outputs.version }}

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build
run: pnpm build

- name: Publish preview releases
run: pnpm pkg-pr-new publish --pnpm
57 changes: 0 additions & 57 deletions .github/workflows/publish.yml

This file was deleted.

55 changes: 55 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Release

on:
push:
branches:
- main

env:
CI: true
COREPACK_INTEGRITY_KEYS: 0

permissions:
contents: write
pull-requests: write
id-token: write

jobs:
release:
name: Release
runs-on: ubuntu-latest
if: github.repository == 'storybookjs/addon-webpack5-compiler-babel'
steps:
- uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4
id: app-token
with:
app-id: ${{ vars.STORYBOOK_BOT_APP_ID }}
private-key: ${{ secrets.STORYBOOK_BOT_APP_PRIVATE_KEY }}

- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0

- name: Enable corepack (for pnpm)
run: corepack enable

- name: Resolve Node.js version
id: node-version
run: echo "version=$(if [ -f .nvmrc ]; then cat .nvmrc; else echo 22; fi)" >> "$GITHUB_OUTPUT"

- name: Setup Node.js
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
cache: pnpm
node-version: ${{ steps.node-version.outputs.version }}

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Create Release Pull Request or Publish to npm
uses: changesets/action@e0145edc7d9d8679003495b11f87bd8ef63c0cba # v1.5.3
with:
publish: pnpm release
commitMode: github-api
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
13 changes: 13 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## Release Process

This repo uses [Changesets](https://github.com/changesets/changesets) for versioning and publishing.

```bash
pnpm changeset
pnpm release
```

- Add a changeset for user-facing changes.
- Name changeset files `<random-word>-<random-word>-<random-word>.md`.
- Keep release notes short and concise by default.
- Run `pnpm format:write` before committing.
13 changes: 7 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# v4.0.1 (Wed Mar 25 2026)
# @storybook/addon-webpack5-compiler-babel
## 4.0.1

#### 🐛 Bug Fix

Expand All @@ -10,7 +11,7 @@

---

# v4.0.0 (Tue Nov 11 2025)
## 4.0.0

#### 💥 Breaking Change

Expand All @@ -22,7 +23,7 @@

---

# v3.0.6 (Tue Apr 01 2025)
## 3.0.6

#### 🐛 Bug Fix

Expand All @@ -35,7 +36,7 @@

---

# v3.0.5 (Mon Dec 30 2024)
## 3.0.5

#### 🐛 Bug Fix

Expand All @@ -47,7 +48,7 @@

---

# v3.0.4 (Mon Dec 30 2024)
## 3.0.4

#### 🐛 Bug Fix

Expand All @@ -61,7 +62,7 @@

---

# v3.0.1 (Mon Mar 11 2024)
## 3.0.1

#### 🐛 Bug Fix

Expand Down
1 change: 1 addition & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@AGENTS.md
12 changes: 5 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,20 @@
"check:ci": "biome ci ./src",
"format": "biome format ./src",
"format:write": "pnpm format --write",
"release": "auto shipit"
"release": "pnpm build && pnpm changeset publish",
"changeset": "changeset"
},
"dependencies": {
"@babel/core": "^7.26.0",
"babel-loader": "^10.0.0"
},
"devDependencies": {
"@biomejs/biome": "^2.3.4",
"@changesets/changelog-github": "^0.5.1",
"@changesets/cli": "^2.29.6",
"@types/node": "^22",
"auto": "^11.3.0",
"find-cache-dir": "^6.0.0",
"pkg-pr-new": "^0.0.57",
"storybook": "^10.0.0",
"tsup": "^8.5.0",
"typescript": "^5.9.3",
Expand All @@ -57,11 +60,6 @@
"registry": "https://registry.npmjs.org/",
"provenance": true
},
"auto": {
"plugins": [
"npm"
]
},
"bundler": {
"previewEntries": [
"src/index.ts"
Expand Down
Loading
Loading