Pushing new version #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Electron Forge Publish | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, windows-latest] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Clear npm cache | |
run: npm cache clean --force | |
- name: Remove node_modules and package-lock.json | |
run: | | |
if [ -d "node_modules" ]; then rm -rf node_modules; fi | |
if [ -f "package-lock.json" ]; then rm package-lock.json; fi | |
shell: bash | |
- name: Install dependencies | |
run: npm install | |
- name: Run Electron Forge Publish | |
run: npm run publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.MY_PERSONAL_ACCESS_TOKEN }} |