Skip to content

feat(signals): new signals package with ngrx signals common store fea… #213

feat(signals): new signals package with ngrx signals common store fea…

feat(signals): new signals package with ngrx signals common store fea… #213

Workflow file for this run

# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: [ main, next, beta, '*.x' ]
pull_request:
branches: '*'
jobs:
quality:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci --legacy-peer-deps
- run: npm run build
- run: npm test
publish:
runs-on: ubuntu-latest
# only allows semantic release on main, next, beta, and 1*x branches, github doesnt do regex matching so we have to manually when we are over version 20
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/next' || github.ref == 'refs/heads/beta' || (startsWith(github.ref, 'refs/heads/1') && endsWith(github.ref, '.x')) }}
needs: [quality]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci --legacy-peer-deps
- run: npm run build
- run: npm run semantic-release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}