-
Notifications
You must be signed in to change notification settings - Fork 50
38 lines (35 loc) · 1.04 KB
/
Copy pathpublish-cli.yaml
File metadata and controls
38 lines (35 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
name: Publish CLI
on:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest-l
permissions:
id-token: write
contents: write
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.head_ref }}
- name: Use Node.js
uses: actions/setup-node@v6
with:
node-version: "24.16.0"
registry-url: "https://registry.npmjs.org"
package-manager-cache: false
- name: Install dependencies
run: npm ci --workspace=@subframe/cli
- name: Bump version
run: npm run update-version --workspace=@subframe/cli
- name: Build
run: npm run build-for-publish --workspace=@subframe/cli
env:
SEGMENT_WRITE_KEY: ${{ secrets.SEGMENT_WRITE_KEY }}
- uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_message: Publish CLI
- name: Publish
run: npm run publish-to-npm --workspace=@subframe/cli