Skip to content

Commit 61ded60

Browse files
committed
feat: add npm on lactame CDN
1 parent e41305e commit 61ded60

6 files changed

Lines changed: 6621 additions & 0 deletions

File tree

.github/workflows/lactame.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Deploy build on lactame.com
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
env:
8+
NODE_VERSION: 22.x
9+
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Get package name
16+
run: echo "PACKAGE_NAME=$(jq .name package.json | tr -d '"')" >> $GITHUB_ENV
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: ${{ env.NODE_VERSION }}
20+
- name: Install dependencies
21+
run: npm install
22+
- name: Build project
23+
run: npm run build
24+
- name: Deploy to lactame.com
25+
uses: zakodium/lactame-action@v1
26+
with:
27+
token: ${{ secrets.LACTAME_TOKEN }}
28+
name: ${{ env.PACKAGE_NAME }}
29+
folder: dist

0 commit comments

Comments
 (0)