-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (29 loc) · 795 Bytes
/
Copy pathrelease.yml
File metadata and controls
32 lines (29 loc) · 795 Bytes
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
name: Release CLI
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run validate
- run: npm test
- run: npm run build:cli
- name: Pack CLI
run: |
mkdir -p release
npm pack --workspace @tanrdev/cache --pack-destination release
mv release/tanrdev-cache-*.tgz release/codecache-cli.tgz
- name: Create GitHub release
env:
GH_TOKEN: ${{ github.token }}
run: gh release create "${GITHUB_REF_NAME}" release/codecache-cli.tgz --generate-notes --title "${GITHUB_REF_NAME}"