Skip to content

fix: fixing beta release. It is not working yet. #57

fix: fixing beta release. It is not working yet.

fix: fixing beta release. It is not working yet. #57

Workflow file for this run

name: Release
on:
push:
branches:
- main
- beta
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: '16.x'
- name: Install
run: npm install
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Build
run: npm run build
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
if [ "${{ github.ref }}" == "refs/heads/main" ]; then
echo "Releasing on main branch"
npx semantic-release
elif [ "${{ github.ref }}" == "refs/heads/beta" ]; then
echo "Releasing on beta branch"
npx semantic-release --branch beta --tag beta
fi