File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ workflow_dispatch :
5
+
6
+ jobs :
7
+ release :
8
+ name : Release
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - name : Checkout PR branch
12
+ uses : actions/checkout@v4
13
+
14
+ - name : Setup Job and Install Dependencies
15
+ uses : ./.github/actions/setup-job
16
+
17
+ - name : Create Release Pull Request or Publish to npm
18
+ id : changesets
19
+ uses : changesets/action@v1
20
+ with :
21
+ title : ' chore: release'
22
+ commit : ' chore: release new versions #publish'
23
+ # This expects you to have a script called release / version:packages
24
+ # which does a build for your packages and calls changeset publish
25
+ publish : yarn release
26
+ version : yarn version:packages
27
+ env :
28
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
29
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 60
60
"process-icons" : " wireit" ,
61
61
"publish:react" : " yarn changeset publish --no-git-tag --tag snapshot --no-push" ,
62
62
"push-to-remote" : " git add . && git commit -m \" chore: release new versions #publish\" && git push" ,
63
+ "release" : " yarn build && changeset publish" ,
63
64
"start" : " yarn storybook" ,
64
65
"storybook" : " wireit" ,
65
66
"storybook:build" : " NODE_ENV=production storybook build -o projects/documentation/dist/storybook -c storybook" ,
82
83
"test:watch:flags:focus" : " yarn build && run-p build:watch \" test:start --watch --group {1} --config web-test-runner.config.ci-chromium-flags.js\" --" ,
83
84
"test:watch:focus" : " yarn build && run-p build:watch \" test:start --watch --group {1}\" --" ,
84
85
"version:update" : " genversion --verbose --semi --esm ./tools/base/src/version.js" ,
86
+ "version:packages" : " yarn config set -H enableImmutableInstalls false && changeset version && yarn lint" ,
85
87
"vrt:preview" : " yarn wds --config test/visual/wds-vrt.config.js" ,
86
88
"vrt:quick-link" : " yarn netlify deploy --alias=vrt --dir=projects/vrt-quick-link"
87
89
},
You can’t perform that action at this time.
0 commit comments