-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.4 KB
/
release.yml
File metadata and controls
43 lines (36 loc) · 1.4 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
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 }}