-
Notifications
You must be signed in to change notification settings - Fork 55
42 lines (38 loc) · 1.04 KB
/
deploy-npm.yml
File metadata and controls
42 lines (38 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Deploy NPM
on:
push:
branches:
- release
permissions:
contents: write
issues: write
pull-requests: write
packages: write
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: pnpm/action-setup@v4
with:
version: ${{ vars.PNPM_VERSION }}
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- run: pnpm install --frozen-lockfile
- run: pnpm build
- run: cd packages/agent && pnpm exec playwright install --with-deps chromium
- run: pnpm test
- run: pnpm verify-release-config
- run: |
git config --global user.email "neuralsoft@gmail.com"
git config --global user.name "Ben Houston (via GitHub Actions)"
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpm release