Skip to content

docs: 📝 tracking example, additions to readme #54

docs: 📝 tracking example, additions to readme

docs: 📝 tracking example, additions to readme #54

Workflow file for this run

name: publish
on:
push:
branches: ["main"]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- uses: pnpm/action-setup@v4
name: Install pnpm
id: pnpm-install
with:
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run build
run: pnpm run build
- name: Run tests
run: pnpm run coverage
- name: Set publishing config
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- name: Copy Readme
run: cp README.md ./packages/symboldi/
- name: Copy Security
run: cp SECURITY.md ./packages/symboldi/
- name: Copy License
run: cp LICENSE.md ./packages/symboldi/
- name: Publish
run: pnpm publish -r