Skip to content

Update angular monorepo to v18.2.11 #378

Update angular monorepo to v18.2.11

Update angular monorepo to v18.2.11 #378

Workflow file for this run

name: workflow
on:
push:
tags:
- '*.*.*'
branches:
- '**'
merge_group:
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
env:
TZ: Europe/Amsterdam
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: |
npm ci --ignore-scripts --legacy-peer-deps
npm run build
npm run test
publish:
if: startsWith(github.ref, 'refs/tags/')
needs: [test]
runs-on: ubuntu-latest
env:
TZ: Europe/Amsterdam
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
- run: |
npm ci --ignore-scripts --legacy-peer-deps
npm run build
- run: |
cd dist/ngrx-store-storagesync
version=${{ github.ref_name }}
sed -i "s/\"version\": \"[^\"]*\"/\"version\": \"$version\"/" ./package.json
npm publish