Skip to content

v1.0.3 Fixed icons types #10

v1.0.3 Fixed icons types

v1.0.3 Fixed icons types #10

Workflow file for this run

name: Publish to npm
on:
release:
types: [created]
workflow_dispatch: # Allow manual trigger from Actions tab
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # Required for npm provenance
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run lint
run: pnpm lint
- name: Build package
run: pnpm build
- name: Publish to npm
run: pnpm publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# Note: Using NPM_TOKEN for now.
# To use trusted publishers in the future:
# 1. Remove the env section above
# 2. Add --provenance flag back to publish command
# 3. Ensure id-token: write permission is set (already configured)
# Idk, trusted publishers are not working for me at the moment.