Skip to content

Commit 6166c7e

Browse files
authored
【GitHub Actions】リリースZIPには不要なファイルを含めないようにする #10 (#580)
* 【GitHub Actions】リリースZIPには不要なファイルを含めないようにする #10 * リリース作業中にHuskyが実行されないように
1 parent 7e88fd8 commit 6166c7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ jobs:
4343
- name: Prepare compile
4444
# vendor ディレクトリの除外には、最初にスラッシュをつけている。これにより resources フォルダ内にある vendor ディレクトリが除外されてしまうのを防いでいる
4545
run: |
46-
rsync -av --update --delete --stats ./ ./dist/ --exclude='dist/' --exclude='docker_dev/' --exclude='.git/' --exclude='.github/' --exclude='/vendor/' --exclude='node_modules/' --exclude='.circleci/' >& /dev/null
46+
rsync -av --update --delete --stats ./ ./dist/ --exclude='dist/' --exclude='docker_dev/' --exclude='.git/' --exclude='.github/' --exclude='/vendor/' --exclude='node_modules/' --exclude='.circleci/' --exclude='tests/' --exclude='.husky/' --exclude='phpunit.xml' --exclude='phpcs.xml' --exclude='.editorconfig' --exclude='.env.testing' --exclude='.eslintrc.js' --exclude='.gitattributes' --exclude='.gitignore' --exclude='.prettierrc' --exclude='.stylelintrc.js' >& /dev/null
4747
- name: Install PHP dependencies
4848
run: composer install --optimize-autoloader --no-dev
4949
working-directory: dist
5050
- name: Install JS dependencies
51-
run: yarn install
51+
run: yarn install --ignore-scripts
5252
working-directory: dist
5353
- name: Compile assets
5454
run: yarn run production

0 commit comments

Comments
 (0)