Skip to content

Commit 5714d8d

Browse files
committed
chore: add release pipeline (#1688)
1 parent d18954d commit 5714d8d

32 files changed

+1700
-2261
lines changed

.changeset/config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
33
"commit": false,
4-
"changelog": false,
4+
"changelog": ["@changesets/changelog-github", { "repo": "strapi/design-system" }],
55
"access": "public",
6-
"baseBranch": "main",
6+
"baseBranch": "develop",
77
"fixed": [["@strapi/*"]],
88
"ignore": ["@strapi/design-system-docs"],
99
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {

.eslintrc

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,4 @@
11
{
22
"extends": ["@strapi/eslint-config/front/typescript"],
3-
"parserOptions": {
4-
"project": ["./tsconfig.json"]
5-
},
6-
"settings": {
7-
"import/resolver": {
8-
"typescript": {
9-
"project": "./tsconfig.json"
10-
}
11-
}
12-
},
13-
"ignorePatterns": ["./packages/**"]
3+
"ignorePatterns": ["./packages/**"],
144
}

.github/ISSUE_TEMPLATE/rfc.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/dependabot.yml

Lines changed: 0 additions & 79 deletions
This file was deleted.

.github/workflows/bundle-size.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,30 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v4
15+
- name: Checkout repo
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
1619

17-
- uses: actions/setup-node@v4
20+
- name: Setup node
21+
uses: actions/setup-node@v4
1822
with:
19-
node-version: '20.12.0'
20-
cache: yarn
23+
node-version-file: '.nvmrc'
24+
cache: 'yarn'
2125

22-
- uses: actions/cache@v4
26+
- name: 'Restore cache'
27+
uses: actions/cache@v4
2328
with:
2429
path: '**/node_modules'
25-
key: ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}
30+
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
2631

27-
- run: yarn install
32+
- name: Install deps
33+
run: yarn install
2834

29-
- name: Build packages
35+
- name: Build
3036
run: yarn build --filter=\!@strapi/design-system-docs
3137

32-
- uses: preactjs/compressed-size-action@v2
38+
- name: Calculate size
39+
uses: preactjs/compressed-size-action@v2
3340
with:
3441
pattern: '**/dist/**/*.{cjs,js,mjs,svg}'

.github/workflows/experimental.yml

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: 'Experimental Releases'
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
branch:
7+
required: true
8+
9+
concurrency: ${{ github.workflow }}-${{ github.ref }}
510

611
permissions:
712
contents: read # to fetch code (actions/checkout)
@@ -12,14 +17,34 @@ jobs:
1217
runs-on: ubuntu-latest
1318
if: github.repository == 'strapi/design-system'
1419
steps:
15-
- uses: actions/checkout@v4
16-
- name: Setup npmrc
17-
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
18-
- uses: actions/setup-node@v4
20+
- name: Checkout repo
21+
uses: actions/checkout@v4
1922
with:
20-
node-version: '20.12.0'
21-
- run: yarn
22-
- run: yarn build --ignore="@strapi/design-system-docs"
23+
fetch-depth: 0
24+
25+
- name: Setup npm auth
26+
run: |
27+
echo "registry=https://registry.npmjs.org" >> ~/.npmrc
28+
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc
29+
30+
- name: Setup node
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version-file: '.nvmrc'
34+
cache: 'yarn'
35+
36+
- name: 'Restore cache'
37+
uses: actions/cache@v4
38+
with:
39+
path: '**/node_modules'
40+
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
41+
42+
- name: Install deps
43+
run: yarn install
44+
45+
- name: Build
46+
run: yarn build --filter=\!@strapi/design-system-docs
47+
2348
- run: ./scripts/pre-publish.sh --yes
2449
env:
2550
VERSION: '0.0.0-${{ github.sha }}'

0 commit comments

Comments
 (0)