mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 14:49:53 +00:00
93c91ebdbe
* Upgrade Electron to 8, bump Node version, fix font-manager * Specify nodeIntegration as true * Get <webview> working again * Get <webview> working again * Electron 9.0 * Escape parens in plugin install exec path (newer Electron added them) * Bump versions for first alpha * Electron 9.1 * Convert all Electron APIs that switched from callback to Promise * Fix send-and-download feature * Remove user-agent override hack for OAuth 2 login window * Bump alpha version * Fix issue regarding chokidar * Add package-lock.json * Upgrade chokidar because @babel/cli uses an older incompatible version of fsevents * Fix source maps * Read .nvmrc in GitHub actions * Address remaining PR feedback
72 lines
2.1 KiB
YAML
72 lines
2.1 KiB
YAML
name: Release Core
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- core@*
|
|
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
GITHUB_REF: ${{ github.ref }}
|
|
GITHUB_SHA: ${{ github.sha }}
|
|
NPM_CONFIG_TARGET: 9.1.0
|
|
NPM_CONFIG_DISTURL: https://electronjs.org/headers
|
|
NPM_CONFIG_RUNTIME: electron
|
|
|
|
jobs:
|
|
Windows:
|
|
name: Windows
|
|
runs-on: windows-2016
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Read Node version from .nvmrc
|
|
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
|
|
id: nvm
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: ${{ steps.nvm.outputs.NVMRC }}
|
|
- run: npm run bootstrap
|
|
- run: npm run test:pre-release
|
|
- run: npm run app-release
|
|
env:
|
|
CSC_LINK: ${{ secrets.CORE_WINDOWS_CSC_LINK }}
|
|
CSC_KEY_PASSWORD: ${{ secrets.CORE_WINDOWS_CSC_KEY_PASSWORD }}
|
|
Mac:
|
|
name: Mac
|
|
runs-on: macos-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Read Node version from .nvmrc
|
|
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
|
|
id: nvm
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: ${{ steps.nvm.outputs.NVMRC }}
|
|
- run: npm run bootstrap
|
|
- run: npm run test:pre-release
|
|
- run: npm run app-release
|
|
env:
|
|
APPLE_ID: ${{ secrets.CORE_APPLE_ID }}
|
|
APPLE_ID_PASSWORD: ${{ secrets.CORE_APPLE_ID_PASSWORD }}
|
|
CSC_LINK: ${{ secrets.CORE_MAC_CSC_LINK }}
|
|
CSC_KEY_PASSWORD: ${{ secrets.CORE_MAC_CSC_KEY_PASSWORD }}
|
|
Linux:
|
|
name: Linux
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- run: |
|
|
sudo snap install snapcraft --classic
|
|
echo "${{ secrets.SNAPCRAFT_LOGIN_FILE }}" > snapcraft.txt && snapcraft login --with snapcraft.txt
|
|
- uses: actions/checkout@v1
|
|
- name: Read Node version from .nvmrc
|
|
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
|
|
id: nvm
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: ${{ steps.nvm.outputs.NVMRC }}
|
|
- run: npm run bootstrap
|
|
- run: npm run test:pre-release
|
|
- run: npm run app-release
|
|
env:
|
|
BUILD_TARGETS: AppImage,deb,tar.gz,rpm,snap
|