Skip to content

Commit 81307ae

Browse files
removing PRODUCTION flag during the build
1 parent 03ea592 commit 81307ae

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

Diff for: .github/workflows/deploy.yml

+14-16
Original file line numberDiff line numberDiff line change
@@ -22,27 +22,25 @@ jobs:
2222
cache: 'npm'
2323
cache-dependency-path: './table-component/package-lock.json'
2424

25-
- name: Install and Build
26-
run: |
27-
npm install
28-
npm run build
25+
# - name: Install Vue CLI globally
26+
# run: npm install -g @vue/cli-plugin-babel/preset
27+
# working-directory: ./table-component
28+
29+
- name: Install dependencies and build
2930
working-directory: ./table-component
30-
env:
31-
NODE_ENV: production
32-
33-
- name: Copy build files
3431
run: |
35-
mkdir -p ../css ../js
36-
cp ./table-component/dist/css/app*.css ../css/app.css
37-
cp ./table-component/dist/css/chunk-vendors*.css ../css/chunk-vendors.css
38-
cp ./table-component/dist/js/app*.js ../js/app.js
39-
cp ./table-component/dist/js/chunk-vendors*.js ../js/chunk-vendors.js
32+
npm ci
33+
npm run build
4034
41-
- name: Prepare documentation
35+
- name: Prepare for deployment
4236
run: |
43-
mkdir gh-pages
37+
mkdir -p gh-pages/css gh-pages/js
38+
cp index.html gh-pages/
39+
cp table-component/dist/css/app*.css gh-pages/css/app.css
40+
cp table-component/dist/css/chunk-vendors*.css gh-pages/css/chunk-vendors.css
41+
cp table-component/dist/js/app*.js gh-pages/js/app.js
42+
cp table-component/dist/js/chunk-vendors*.js gh-pages/js/chunk-vendors.js
4443
touch gh-pages/.nojekyll
45-
mv site/* ./gh-pages/
4644
4745
- name: Deploy documentation.
4846
if: ${{ github.event_name == 'push' }}

0 commit comments

Comments
 (0)