File tree Expand file tree Collapse file tree 3 files changed +21
-16
lines changed Expand file tree Collapse file tree 3 files changed +21
-16
lines changed Original file line number Diff line number Diff line change @@ -148,19 +148,19 @@ jobs:
148
148
run : npm run build
149
149
150
150
- name : 🚀 Release
151
- run : echo "TODO..."
152
- # uses: cycjimmy/semantic-release-action@v2
153
- # with:
154
- # semantic_version: 17
155
- # branches: |
156
- # [
157
- # '+([0-9])?(.{+([0-9]),x}).x',
158
- # 'main',
159
- # 'next',
160
- # 'next-major',
161
- # {name: 'beta', prerelease: true},
162
- # {name: 'alpha', prerelease: true}
163
- # ]
164
- # env:
165
- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
166
- # NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
151
+ uses : cycjimmy/semantic-release-action@v2
152
+ with :
153
+ working_directory : ./packages/workshop-app
154
+ semantic_version : 17
155
+ branches : |
156
+ [
157
+ '+([0-9])?(.{+([0-9]),x}).x',
158
+ 'main',
159
+ 'next',
160
+ 'next-major',
161
+ {name: 'beta', prerelease: true},
162
+ {name: 'alpha', prerelease: true}
163
+ ]
164
+ env :
165
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
166
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ if (argv[0] !== 'start') {
14
14
if ( process . env . NODE_ENV === 'production' || isPublished ) {
15
15
exec ( 'npm run start' , {
16
16
KCDSHOP_CONTEXT_CWD : process . env . KCDSHOP_CONTEXT_CWD ?? process . cwd ( ) ,
17
+ NODE_ENV : 'production' ,
17
18
} ) . catch ( code => {
18
19
process . exit ( code )
19
20
} )
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @kentcdodds/workshop-app" ,
3
+ "version" : " 0.0.0-semantically-released" ,
3
4
"sideEffects" : false ,
5
+ "publishConfig" : {
6
+ "access" : " public"
7
+ },
4
8
"bin" : {
5
9
"kcdshop" : " ./bin/kcdshop.js"
6
10
},
You can’t perform that action at this time.
0 commit comments