Skip to content

Commit a1442fe

Browse files
authored
ci: add workflow to publish packages to npm (#5067)
1 parent 7293e69 commit a1442fe

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish packages to NPM
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
release-to-npm:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
id-token: write
11+
steps:
12+
- name: Checkout Repository
13+
uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Setup Node
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 18
21+
registry-url: 'https://registry.npmjs.org'
22+
23+
- run: npm ci
24+
25+
- run: npm run compile
26+
27+
- name: Publish to npm
28+
env:
29+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
30+
NPM_CONFIG_PROVENANCE: true
31+
run: npx lerna publish --concurrency 1 from-package --no-push --no-private --no-git-tag-version --no-verify-access --yes

0 commit comments

Comments
 (0)