Skip to content

Update dependency jest-preset-angular to v14.3.1 #306

Update dependency jest-preset-angular to v14.3.1

Update dependency jest-preset-angular to v14.3.1 #306

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/ngx-translate-module-loader
version=${{ github.ref_name }}
sed -i "s/\"version\": \"[^\"]*\"/\"version\": \"$version\"/" ./package.json
npm publish