release-test #3
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: release-test | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: New version to assign to the package | |
required: true | |
skip_versioning: | |
type: boolean | |
description: Skip versioning (use only for retrying a workflow that failed due to a versioning issue) | |
default: false | |
jobs: | |
prepare-release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@main | |
with: | |
ref: ${{ github.event.client_payload.ref }} | |
- name: Install Node.js, NPM, and Yarn | |
uses: actions/setup-node@main | |
with: | |
node-version: 16 | |
- name: Install dependencies | |
run: npm ci | |
- name: Test, Lint, and Type Check | |
run: | | |
npm run test | |
npm run lint | |
npm run typeCheck | |
- name: Change version | |
if: github.event.inputs.skip_versioning == 'false' | |
uses: reedyuk/[email protected] | |
with: | |
version: "${{ github.event.inputs.version }}" | |
package: 'packages/desktop/' | |
git-tag-version: 'true' | |
release-fms-file-explorer-desktop: | |
if: "success()" | |
needs: [prepare-release] | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@main | |
with: | |
ref: ${{ github.event.client_payload.ref }} | |
- name: Install Node.js, NPM, and Yarn | |
uses: actions/setup-node@main | |
with: | |
node-version: 16 | |
- name: Build/release Electron app | |
uses: AllenCellSoftware/action-electron-builder@fms-file-explorer | |
env: | |
AMPLITUDE_API_KEY: ${{ secrets.AMPLITUDE_API_KEY }} | |
with: | |
# GitHub token, automatically provided to the action | |
# (No need to define this secret in the repo settings) | |
github_token: ${{ secrets.github_token }} | |
package_root: "packages/desktop" | |
release: true | |
windows_certs: ${{ secrets.CSC_LINK }} | |
windows_certs_password: ${{ secrets.CSC_KEY_PASSWORD }} |