Skip to content

Use node.js 16.

Use node.js 16. #13

Workflow file for this run

name: release
on:
push:
tags:
- v*
jobs:
test-pack-release:
runs-on: ubuntu-latest
name: Test, Pack and Release
steps:
- name: Fetch repository
uses: actions/checkout@master
# Setup Node.js 16 environment
- name: Setup Node.js 16
uses: actions/setup-node@v3
with:
node-version: '16'
- uses: bahmutov/npm-install@v1
with:
useLockFile: false
working-directory: studio
- name: Build studio
run: cd studio && yarn openapi && yarn build:embed && cd ..
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Configure environment
id: config
run: |
VERSION=$(echo $GITHUB_REF | sed -e "s/^refs\/tags\/v//")
sed -i "s/0.1.0/$VERSION/g" Cargo.toml
echo ::set-output name=version::$VERSION
- uses: actions-rs/cargo@v1
with:
command: build
args: --release --all-features
- name: Build studio
run: mv target/release/biominer-indexd target/release/biominer-indexd-v${{ steps.config.outputs.version }}-x86_64-linux
- name: Create a pre-release
id: pre_release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "v${{ steps.config.outputs.version }}"
prerelease: true
title: "Pre-release v${{ steps.config.outputs.version }}"
files: |
LICENSE
target/release/biominer-indexd-v*
- name: Output
run: echo "${{steps.pre_release.outputs.automatic_releases_tag}}"