Skip to content

chore: updates build scripts #1

chore: updates build scripts

chore: updates build scripts #1

Workflow file for this run

name: Publish libraries
on:
push:
tags:
- v*.*.*
jobs:
test:
name: Publish
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
timeout-minutes: 10
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Exit if not on main branch
if: endsWith(github.ref, 'main') == false
run: exit -1
- name: Install NodeJS
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: npm ci
- name: Print environment info
run: npm nx -- report
- name: Publish packages
run: npm nx -- release publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
NPM_CONFIG_PROVENANCE: true
- name: Create GitHub release
uses: ncipollo/release-action@v1
with:
artifacts: "dist/**/*"