Skip to content

Commit

Permalink
Merge pull request #26 from con-cis/fix/sandbox
Browse files Browse the repository at this point in the history
fix(electron): sandbox for production env
  • Loading branch information
con-cis authored Aug 19, 2024
2 parents af10661 + 91dfa3a commit bebe89e
Show file tree
Hide file tree
Showing 9 changed files with 9,063 additions and 46 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,21 @@ name: MC Docu CI

on:
push:
branches: ['master']
branches:
- master
paths-ignore:
- '**.md'
- '**.spec.js'
- '.idea'
- '.vscode'
- '.idea/**'
- '.vscode/**'
- '.dockerignore'
- 'Dockerfile'
- '.gitignore'
- '.github/**'
- '!.github/workflows/build.yml'
pull_request:
branches: ['master']
branches:
- master

jobs:
build:
Expand All @@ -25,17 +27,18 @@ jobs:
fail-fast: true
max-parallel: 4
matrix:
node-version: ['latest']
version: ['latest']
os: [macos-latest, ubuntu-latest, windows-latest]

steps:
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: ${{ matrix.version }}
cache: 'npm'

- name: Install Dependencies
run: npm install --force
Expand Down Expand Up @@ -72,15 +75,15 @@ jobs:
run: dir dist

- name: Upload Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: release_on_${{ matrix.os }}_node_${{ matrix.node-version }}
name: release_on_${{ matrix.os }}_node_${{ matrix.version }}
path: dist/
retention-days: 62
if-no-files-found: warn

- name: Download Artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: release_on_${{ matrix.os }}_node_${{ matrix.node-version }}
name: release_on_${{ matrix.os }}_node_${{ matrix.version }}
path: dist/
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ dist-electron
*.sw?

# lockfile
package-lock.json
# package-lock.json
pnpm-lock.yaml
yarn.lock

Expand All @@ -36,4 +36,7 @@ backlog.md
out

# examples
examples
examples

# owasp dependency-check-report
dependency-check-report.html
3 changes: 2 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"--sourcemap"
],
"env": {
"REMOTE_DEBUGGING_PORT": "9222"
"REMOTE_DEBUGGING_PORT": "9222",
"NODE_ENV": "development",
}
},
{
Expand Down
Loading

0 comments on commit bebe89e

Please sign in to comment.