2022-03-09 19:03:14 +00:00
|
|
|
name: Release Recurring
|
2022-02-10 15:32:33 +00:00
|
|
|
# This workflow bakes executables of the major platforms for Testing purposes
|
|
|
|
on:
|
2023-03-31 10:51:31 +00:00
|
|
|
merge_group:
|
2022-02-10 15:32:33 +00:00
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- develop
|
|
|
|
pull_request:
|
|
|
|
types:
|
|
|
|
- opened
|
|
|
|
- synchronize
|
|
|
|
concurrency:
|
2023-03-31 10:51:31 +00:00
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
2022-02-14 17:21:45 +00:00
|
|
|
env:
|
|
|
|
PR_NUMBER: ${{ github.event.number }}
|
2022-02-10 15:32:33 +00:00
|
|
|
jobs:
|
|
|
|
build-and-upload-artifacts:
|
2022-03-10 17:45:11 +00:00
|
|
|
# Skip jobs for release PRs
|
|
|
|
if: "!startsWith(github.head_ref, 'release/')"
|
2022-02-10 15:32:33 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
include:
|
2023-06-27 18:16:03 +00:00
|
|
|
- os: "macos-latest"
|
|
|
|
build-targets: "zip"
|
2023-03-31 10:51:31 +00:00
|
|
|
- os: "windows-latest"
|
|
|
|
build-targets: "portable"
|
|
|
|
- os: "ubuntu-latest"
|
|
|
|
build-targets: "tar.gz"
|
2022-02-10 15:32:33 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout branch
|
2022-03-09 15:06:53 +00:00
|
|
|
uses: actions/checkout@v3
|
2022-02-10 15:32:33 +00:00
|
|
|
|
|
|
|
- name: Setup Node
|
2022-03-09 15:06:53 +00:00
|
|
|
uses: actions/setup-node@v3
|
2022-02-10 15:32:33 +00:00
|
|
|
with:
|
2023-03-31 10:51:31 +00:00
|
|
|
node-version-file: ".nvmrc"
|
2023-08-09 22:14:16 +00:00
|
|
|
cache: 'npm'
|
|
|
|
cache-dependency-path: package-lock.json
|
2022-02-10 15:32:33 +00:00
|
|
|
|
2023-08-09 22:14:16 +00:00
|
|
|
- name: Install packages
|
|
|
|
run: npm ci
|
2022-02-10 15:32:33 +00:00
|
|
|
|
2022-03-09 15:06:53 +00:00
|
|
|
- name: Bump version
|
|
|
|
shell: bash
|
2023-08-10 09:04:28 +00:00
|
|
|
run: npm --workspaces version prerelease --preid="$(git rev-parse --short HEAD)${{ github.event_name == 'pull_request' && '.pr-$PR_NUMBER' || '' }}" --no-git-tag-version
|
2022-03-09 15:06:53 +00:00
|
|
|
|
2022-02-10 15:32:33 +00:00
|
|
|
- name: Package
|
|
|
|
shell: bash
|
2022-06-28 09:29:28 +00:00
|
|
|
run: NODE_OPTIONS='--max_old_space_size=6144' BUILD_TARGETS='${{ matrix.build-targets }}' npm run app-package
|
2022-02-10 15:32:33 +00:00
|
|
|
|
|
|
|
- name: Upload artifacts
|
2022-03-09 15:06:53 +00:00
|
|
|
uses: actions/upload-artifact@v3
|
2022-02-10 15:32:33 +00:00
|
|
|
with:
|
|
|
|
if-no-files-found: ignore
|
|
|
|
name: ${{ matrix.os }}-artifacts-${{ github.run_number }}
|
|
|
|
path: |
|
2022-04-20 17:42:19 +00:00
|
|
|
packages/insomnia/dist/*.exe
|
|
|
|
packages/insomnia/dist/*.tar.gz
|
|
|
|
packages/insomnia/dist/*.zip
|