Skip to content

Commit 4838265

Browse files
committed
chore: update ci
1 parent 7590164 commit 4838265

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,31 @@
1-
name: publish
1+
name: Publish Package (nightly)
2+
3+
# https://docs.npmjs.com/trusted-publishers
24

35
on:
46
push:
57
branches:
68
- main
9+
# tags:
10+
# - 'v*'
711

812
permissions:
913
id-token: write # Required for OIDC
1014
contents: read
1115

1216
jobs:
13-
ci:
17+
publish:
1418
runs-on: ubuntu-latest
1519
steps:
1620
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
1721
with:
1822
fetch-depth: 0
19-
2023
- run: npm i -fg corepack && corepack enable
2124
- uses: actions/setup-node@v4
2225
with:
2326
node-version: 24
2427
cache: 'pnpm'
2528

26-
- run: corepack enable
27-
- run: pnpm install
28-
- run: pnpm run lint
29-
- run: pnpm run build
29+
- run: corepack enable && pnpm install
3030
- name: publish
31-
run: |
32-
pnpm changelogen --canary nightly --bump
33-
npm publish
31+
run: pnpm changelogen --canary nightly --bump && npm publish --tag main

0 commit comments

Comments
 (0)