-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (55 loc) · 2.34 KB
/
Copy pathrelease.yml
File metadata and controls
65 lines (55 loc) · 2.34 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Release
# Publishes @smooai/deploy to npm. The package ships TypeScript source
# (files: ["src"], main: src/index.ts) — consumers compile it, same as the
# path-dep dev model. Uses the org-level SMOOAI_NPM_TOKEN secret (visibility ALL).
on:
workflow_dispatch:
push:
tags: ['v*']
jobs:
publish-npm:
runs-on: ubuntu-latest
permissions:
contents: read
defaults:
run:
working-directory: sst
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: 'https://registry.npmjs.org'
- name: Install
run: pnpm install --no-frozen-lockfile
# NOTE: typecheck is intentionally NOT run here — the construct's
# ambient `sst`/`$util` globals require `pnpm sst install` (the
# `.sst/platform` types), which is a CI concern separate from
# publishing. The package ships verified source; add a proper
# PR-checks workflow (with `sst install`) for the type gate.
- name: Publish to npm
run: pnpm publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.SMOOAI_NPM_TOKEN }}
# Publishes the reusable `smooai-next` Helm chart to GHCR as an OCI artifact
# (oci://ghcr.io/smooai/charts/smooai-next:<version>). Consumers reference it
# from cdk8s (`cdk8s.Helm`) / ArgoCD. helm is pre-installed on ubuntu runners.
publish-helm:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Login to GHCR (Helm OCI registry)
run: echo "${{ secrets.GITHUB_TOKEN }}" | helm registry login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Package + push smooai-next chart
run: |
set -euo pipefail
helm package helm/smooai-next
CHART_TGZ=$(ls smooai-next-*.tgz)
echo "Pushing $CHART_TGZ → oci://ghcr.io/smooai/charts"
helm push "$CHART_TGZ" oci://ghcr.io/smooai/charts