Skip to content

fix: Consolidate utility functions and improve code clarity #44

fix: Consolidate utility functions and improve code clarity

fix: Consolidate utility functions and improve code clarity #44

Workflow file for this run

name: NPM Package Publish
on:
push:
branches:
- main
- master
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: 'write'
packages: 'write'
actions: 'read'
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
- name: Build
run: npm run build
- name: Debug NPM_TOKEN
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
echo "Token length: ${#NPM_TOKEN}"
echo "Token starts with: ${NPM_TOKEN:0:5}"
npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN
npm whoami
- name: Semantic Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release