Skip to content

Release

Release #21

Workflow file for this run

name: Release
on:
workflow_dispatch:
push:
tags:
- 'v**'
permissions:
actions: read
contents: read
jobs:
BuildAndTest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: 'true'
- uses: actions/setup-node@v4
with:
node-version: 24
cache: 'npm'
registry-url: https://registry.npmjs.org/
- run: npm ci --legacy-peer-deps
- uses: ./.github/workflows/actions/get-version-from-git
id: get-version
- name: Build projects
uses: ./.github/workflows/actions/build-projects
with:
version: ${{ steps.get-version.outputs.version }}
- name: Run unit tests (headless)
env:
CI: 'true'
run: |
npm run test -- --watch=false --browsers=ChromeHeadless --code-coverage
- name: Publish angular-tofu library to NPM
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
cd dist/angular-tofu
npm publish --access public