Skip to content

Commit 4480885

Browse files
committed
feature: create release workflow and clean the env-client file
1 parent 48ed610 commit 4480885

7 files changed

Lines changed: 439 additions & 18 deletions

File tree

.github/workflows/release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Publish to npm
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
id-token: write # Needed for npm provenance
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- uses: pnpm/action-setup@v4
17+
with:
18+
version: 9 # or your preferred pnpm version
19+
20+
- uses: actions/setup-node@v4
21+
with:
22+
node-version: '20' # or your preferred version
23+
cache: 'pnpm'
24+
registry-url: 'https://registry.npmjs.org'
25+
26+
- name: Install dependencies
27+
run: pnpm install --frozen-lockfile
28+
29+
- name: Build package
30+
run: cd core && pnpm build
31+
32+
- name: Publish to npm
33+
run: cd core && pnpm publish --no-git-checks --access public
34+
env:
35+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)