Skip to content

Commit fb80fd4

Browse files
authored
Merge branch 'main' into DS-350
2 parents 9f8aa30 + 52d00bb commit fb80fd4

File tree

89 files changed

+9791
-7332
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+9791
-7332
lines changed

.github/workflows/add-issues-to-project.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 42 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,56 @@
1-
on: [push]
1+
name: CI
22

3-
name: Publish Website and Playroom
3+
on: [push]
44

55
jobs:
6-
publish:
6+
checks:
7+
runs-on: ubuntu-latest
8+
name: Checks
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
tasks: [prettier-check, eslint-check, check-circular-deps, test, typecheck, build]
13+
steps:
14+
- uses: actions/checkout@v3
15+
- uses: actions/setup-node@v3
16+
with:
17+
node-version: 20
18+
- uses: pnpm/action-setup@v2
19+
with:
20+
run_install: true
21+
- run: pnpm ${{ matrix.tasks }}
22+
23+
chromatic:
24+
runs-on: ubuntu-latest
25+
name: Chromatic
26+
steps:
27+
- uses: actions/checkout@v3
28+
with:
29+
fetch-depth: 0
30+
- uses: actions/setup-node@v3
31+
with:
32+
node-version: 20
33+
- uses: pnpm/action-setup@v2
34+
with:
35+
run_install: true
36+
- uses: chromaui/action@v1
37+
with:
38+
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
39+
workingDir: packages/bento-design-system
40+
autoAcceptChanges: main
41+
exitOnceUploaded: true
42+
43+
cloudflare-pages:
744
runs-on: ubuntu-latest
45+
name: Cloudflare Pages
846
permissions:
947
contents: read
1048
deployments: write
11-
name: Cloudflare Pages
1249
steps:
1350
- uses: actions/checkout@v3
1451
- uses: actions/setup-node@v3
1552
with:
16-
node-version: 16
53+
node-version: 20
1754
- uses: pnpm/action-setup@v2
1855
with:
1956
run_install: true

.github/workflows/release.yml

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags: ["v*"]
6+
7+
permissions: write-all
8+
9+
jobs:
10+
release:
11+
runs-on: ubuntu-latest
12+
name: Release
13+
steps:
14+
- name: Generate Github App Token
15+
id: github_app_token
16+
uses: actions/create-github-app-token@v1
17+
with:
18+
app-id: ${{ secrets.RELEASE_BOT_APP_ID }}
19+
private-key: ${{ secrets.RELEASE_BOT_APP_PRIVATE_KEY }}
20+
21+
- uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0
24+
ref: main
25+
token: ${{ steps.github_app_token.outputs.token }}
26+
27+
- uses: actions/setup-node@v4
28+
with:
29+
node-version: 20
30+
31+
- uses: pnpm/action-setup@v3
32+
with:
33+
run_install: true
34+
35+
- run: |
36+
cd packages/bento-design-system
37+
pnpm version --no-git-tag-version --new-version ${{ github.ref_name }}
38+
new_version=$(cat package.json | jq -r '.version')
39+
cd ../../templates/react-router-monorepo/libs/design-system
40+
jq '.dependencies["@buildo/bento-design-system"] = "'${new_version}'"' package.json > package.json.tmp && mv package.json.tmp package.json
41+
42+
- name: Commit & Push changes
43+
uses: actions-js/push@master
44+
with:
45+
message: ${{ github.ref_name }}
46+
author_name: buildo-release-bot[bot]
47+
author_email: 168835274+buildo-release-bot[bot]@users.noreply.github.com
48+
github_token: ${{ steps.github_app_token.outputs.token }}
49+
50+
- name: Publish to npm
51+
uses: JS-DevTools/npm-publish@v3
52+
with:
53+
package: "packages/bento-design-system/package.json"
54+
token: ${{ secrets.NPM_TOKEN }}
55+
access: "public"
56+
provenance: true
57+
ignore-scripts: false
58+
59+
- name: Publish to Github
60+
uses: JS-DevTools/npm-publish@v3
61+
with:
62+
package: "packages/bento-design-system/package.json"
63+
registry: "https://npm.pkg.github.com"
64+
token: ${{ secrets.GITHUB_TOKEN }}
65+
access: "public"
66+
provenance: true
67+
ignore-scripts: false
68+
69+
- uses: slackapi/slack-github-action@v1.24.0
70+
if: ${{ job.status == 'success' }}
71+
env:
72+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
73+
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
74+
with:
75+
channel-id: C02UMTSG2BA
76+
payload: '{"text": ":tada: Version ${{ github.ref_name }} has been released!"}'
77+
78+
- uses: slackapi/slack-github-action@v1.24.0
79+
if: ${{ job.status == 'failure' }}
80+
env:
81+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
82+
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
83+
with:
84+
channel-id: C02UMTSG2BA
85+
payload: '{"text": ":x: Version ${{ github.ref_name }} failed to release"}'

ci/pipeline.yml

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

0 commit comments

Comments
 (0)