Skip to content

Release version 0.4.0 #10

Release version 0.4.0

Release version 0.4.0 #10

Workflow file for this run

name: Publish
on:
push:
tags:
- "v*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: "17"
registry-url: "https://registry.npmjs.org"
- run: npm ci
- run: npx nx format:check --all
- run: >
npx nx run-many --projects=pdf-renderer,invoice-template,api-proxy --target=build --parallel --max-parallel=3
- run: >
npx nx run-many --projects=pdf-renderer,invoice-template,api-proxy --target=test --parallel --max-parallel=2
--ci
- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@master
- name: Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: ${{ format('Release v{0}', steps.package-version.outputs.current-version) }}
tag_name: ${{ format('v{0}', steps.package-version.outputs.current-version) }}
- name: Publish
run: npx nx run-many --all --target=publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}