Skip to content

fix: more updates to prevent render issues #297

fix: more updates to prevent render issues

fix: more updates to prevent render issues #297

Workflow file for this run

name: Build Mobile-Control-Core
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: set up Node
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Get branch name
id: get_branch
run: |
branch=${GITHUB_REF#refs/heads/}
echo "branch=$branch" >> $GITHUB_OUTPUT
echo "prerelease=${branch//\//-}" >> $GITHUB_OUTPUT
env:
GITHUB_REF: ${{ github.ref }}
- name: Replace branch name in .releaserc.json
if: steps.get_branch.outputs.branch != 'main'
uses: jacobtomlinson/gha-find-replace@master
with:
find: 'replace-me-feature-branch'
replace: '${{ steps.get_branch.outputs.branch }}'
include: '.releaserc.json'
- name: Replace prerelease name in .releaserc.json
if: steps.get_branch.outputs.branch != 'main'
uses: jacobtomlinson/gha-find-replace@master
with:
find: 'replace-me-prerelease'
replace: '${{ steps.get_branch.outputs.prerelease }}'
include: '.releaserc.json'
- name: install packages
run: npm ci
- name: build
run: npm run build
- name: Deploy to npm
run: |
npx --package=semantic-release \
--package=@semantic-release/commit-analyzer \
--package=@semantic-release/release-notes-generator \
--package=@semantic-release/changelog \
--package=@semantic-release/exec \
--package=conventional-changelog-conventionalcommits \
--package=@semantic-release/npm \
--package=@semantic-release/github \
-- semantic-release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}