Skip to content

Commit 4202ab6

Browse files
committed
Add publish script
1 parent a5dca18 commit 4202ab6

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

.github/workflows/publish.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- "packages/engramma/package.json"
9+
10+
permissions:
11+
contents: read
12+
id-token: write
13+
14+
jobs:
15+
publish:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- uses: pnpm/action-setup@v4
21+
name: Install pnpm
22+
with:
23+
run_install: false
24+
25+
- name: Install Node.js
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: 22
29+
cache: "pnpm"
30+
31+
- run: pnpm install --frozen-lockfile
32+
- run: pnpm check
33+
- run: pnpm build
34+
- run: pnpm --filter engramma publish --no-git-checks --provenance

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"packageManager": "pnpm@10.20.0",
3-
"name": "engramma",
3+
"name": "engramma-root",
44
"author": "Bogdan Chadkin",
55
"license": "MIT",
66
"type": "module",

0 commit comments

Comments
 (0)