chore: github actions node version #62
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 | |
on: | |
push: | |
branches: | |
- master | |
create: | |
tags: | |
- v* | |
jobs: | |
Release: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '14.15.3' | |
- name: Setup Env | |
run: | | |
npm ci --ignore-scripts | |
npm i -g nexe@latest | |
- name: Build | |
run: | | |
npm run build | |
nexe dist/index.js -t linux-x64 -o dist/omniboard-linux-x64 | |
cd dist | |
tar cvzf omniboard-linux-x64.tar.gz omniboard-linux-x64 | |
- name: Prepare Changelog | |
run: npx ts-node ./tooling/release-changelog-extractor.ts | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
body_path: ${{ github.workspace }}/CHANGELOG-latest.md | |
token: ${{ secrets.OMNIBOARD_RELEASES_TOKEN }} | |
files: | | |
dist/omniboard*gz | |
env: | |
GITHUB_REPOSITORY: omniboard-dev/analyzer |