Skip to content

Build and Release

Build and Release #21

Workflow file for this run

name: Build and Release
on:
workflow_dispatch:
push:
tags:
- "v*"
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: "20"
cache: "yarn"
- name: Install Yarn
run: npm install -g yarn
- name: Install dependencies
run: yarn install
- name: Build
run: yarn build
- uses: actions/checkout@v3
- name: Release file
uses: djnicholson/release-action@v2.10
with:
token: ${{ secrets.RELEASE_TOKEN }}
release_name: Core Bundle ${{ github.ref }}
release_tag: ${{ github.ref }}
asset-name: "ic-reactor-core.min.js"
file: "./packages/core/umd/production/ic-reactor-core.min.js"