Skip to content

ADE-13: started implmenting CLI #33

ADE-13: started implmenting CLI

ADE-13: started implmenting CLI #33

Workflow file for this run

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: "@adenta-npm-publish"
on:
push:
branches:
- main # Triggers when code is pushed to main branch
tags:
- 'v*.*.*' # Triggers when version tags are pushed
release:
types: [created] # Triggers when a new release is created
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write # for tagging
id-token: write # needed for provenance data generation
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 10
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: pnpm install
shell: bash
- name: Print Environment Info
run: pnpm exec nx report
shell: bash
- name: Run Tests
run: echo "Test Here"
shell: bash
# Todo make this step automated
# - name: Version and Changelog
# run: pnpm exec nx release --skip-publish --specifier prerelease --first-release
# shell: bash
- name: Publish packages
run: pnpm exec nx release publish --verbose
shell: bash
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true
# publish-npm:
# needs: build
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v4
# with:
# node-version: ${{ matrix.node-version }}
# registry-url: https://registry.npmjs.org/
# - name: Install pnpm
# uses: pnpm/action-setup@v2
# with:
# version: 10