Skip to content

Publish

Publish #28

Workflow file for this run

name: Build and Release
on:
push:
tags:
- "@ic-reactor/core@*"
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
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
- name: Get Core Package Version
id: core-version
run: echo "CORE_VERSION=$(jq -r '.version' ./packages/core/package.json)" >> $GITHUB_ENV
- name: List Files in Directory
run: ls -la ./packages/core/umd/production/
- name: Release File
uses: djnicholson/release-action@v2.10
with:
token: ${{ secrets.RELEASE_TOKEN }}
release-name: "Core Bundle v${{ env.CORE_VERSION }}"
tag-name: "v${{ env.CORE_VERSION }}"
asset-name: "ic-reactor-core.min.js"
file: "./packages/core/umd/production/ic-reactor-core.min.js"
prerelease: false
draft: false