Skip to content

Commit cfdd2ee

Browse files
committed
cleanup
1 parent b704a9e commit cfdd2ee

File tree

5 files changed

+14984
-16
lines changed

5 files changed

+14984
-16
lines changed

.github/workflows/publish-to-npm.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
# Checkout repository
12+
- uses: actions/checkout@v3
13+
14+
# Set up Node.js and cache dependencies
15+
- uses: actions/setup-node@v3
16+
with:
17+
node-version: 22.11.0
18+
registry-url: 'https://registry.npmjs.org'
19+
cache: 'npm'
20+
21+
# Install all dependencies including devDependencies
22+
- run: npm ci --legacy-peer-deps
23+
name: Install dependencies
24+
25+
# Build the project
26+
- run: npm run build
27+
name: Build project
28+
29+
# Publish to npm
30+
- run: npm publish --access public
31+
name: Publish package
32+
env:
33+
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_AUTH_TOKEN }}

0 commit comments

Comments
 (0)