1+ name : Mint Components Release
2+ on :
3+ push :
4+ branches : [master]
5+ paths :
6+ - " packages/mint-components/**"
7+ workflow_dispatch :
8+
9+ permissions :
10+ id-token : write
11+ contents : write
12+ pull-requests : write
13+ issues : read
14+
15+ jobs :
16+ release :
17+ runs-on : ubuntu-latest
18+ name : Release Mint Components
19+ defaults :
20+ run :
21+ working-directory : packages/mint-components
22+ steps :
23+ - name : Checkout code
24+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # de0fa = v6.0.2
25+
26+ - name : Setup Node.js
27+ uses : actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # 53b83 = v6.3.0
28+ with :
29+ node-version : 24
30+ registry-url : https://registry.npmjs.org
31+
32+ - name : Install packages
33+ run : npm ci
34+
35+ - name : Create release pull request or publish to npm
36+ id : changesets
37+ uses : changesets/action@001cd79f0a536e733315164543a727bdf2d70aff # 001cd = v1.5.1
38+ with :
39+ cwd : packages/mint-components
40+ version : npm run version
41+ publish : npm run release
42+ title : " mint-components - Version Packages"
43+ env :
44+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
45+ NPM_CONFIG_PROVENANCE : true
46+
47+ - name : Build docs site
48+ if : steps.changesets.outputs.published == 'true'
49+ run : NODE_ENV=dev npm run build
50+
51+ - name : Authenticate with Google Cloud
52+ if : steps.changesets.outputs.published == 'true'
53+ uses : google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093 # 7c6bc = v3
54+ with :
55+ token_format : " access_token"
56+ workload_identity_provider : " projects/167728399658/locations/global/workloadIdentityPools/github/providers/github"
57+ service_account : " github-static-site-actions@static-site-proxy.iam.gserviceaccount.com"
58+
59+ - name : Setup GCP
60+ if : steps.changesets.outputs.published == 'true'
61+ uses : google-github-actions/setup-gcloud@aa5489c8933f4cc7a4f7d45035b3b1440c9c10db # aa548 = v3.0.1
62+
63+ - name : Deploy docs to bucket
64+ if : steps.changesets.outputs.published == 'true'
65+ run : gsutil -m rsync -d -r www/ gs://stencilbook_static_saasquatch/mint-components/production/
0 commit comments