Node.js CI #44
Workflow file for this run
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: Node.js CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- run: npm install | |
- run: npm run build | |
- run: sudo apt-get install --no-install-recommends -y gcc-multilib g++-multilib | |
- run: docker run --rm -ti \ | |
--env-file <(env | grep -iE 'DEBUG|NODE_|ELECTRON_|YARN_|NPM_|CI|CIRCLE|TRAVIS_TAG|TRAVIS|TRAVIS_REPO_|TRAVIS_BUILD_|TRAVIS_BRANCH|TRAVIS_PULL_REQUEST_|APPVEYOR_|CSC_|GH_|GITHUB_|BT_|AWS_|STRIP|BUILD_') \ | |
--env ELECTRON_CACHE="/root/.cache/electron" \ | |
--env ELECTRON_BUILDER_CACHE="/root/.cache/electron-builder" \ | |
-v ${PWD}:/project \ | |
-v ${PWD##*/}-node-modules:/project/node_modules \ | |
-v ~/.cache/electron:/root/.cache/electron \ | |
-v ~/.cache/electron-builder:/root/.cache/electron-builder \ | |
electronuserland/builder:wine | |
- run: npm run publish |