Skip to content

Commit daa5277

Browse files
committed
feat: add publish-npm job to release workflow
1 parent 8042767 commit daa5277

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,28 @@ jobs:
3030
- run: npx changelogithub
3131
env:
3232
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
34+
publish-npm:
35+
runs-on: ubuntu-latest
36+
permissions:
37+
id-token: write
38+
steps:
39+
- name: Checkout
40+
uses: actions/checkout@v6
41+
42+
- name: Install pnpm
43+
uses: pnpm/action-setup@v4
44+
45+
- uses: actions/setup-node@v6
46+
with:
47+
node-version: lts/*
48+
registry-url: https://registry.npmjs.org/
49+
cache: pnpm
50+
51+
- run: pnpm install
52+
53+
- run: pnpm --filter @nextorders/food-schema run build
54+
55+
- run: pnpm --filter @nextorders/food-schema publish --no-git-checks --provenance
56+
env:
57+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)