Skip to content

app and status controller #21

app and status controller

app and status controller #21

Workflow file for this run

name: Build & Publish
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'yarn'
registry-url: 'https://registry.npmjs.org'
- name: Install modules
run: yarn install --immutable
- name: Run check-all
run: yarn check-all
publish:
runs-on: ubuntu-latest
needs: test
if: startsWith(github.ref, 'refs/tags/release-')
steps:
- uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'yarn'
registry-url: 'https://registry.npmjs.org'
- name: Install modules
run: yarn install --immutable
- name: Build
run: yarn run build:ci
- name: Publish to npm
run: |
cd packages/feature-flagz-core
npm publish --access public
cd ..
cd feature-flagz-react
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}