-
-
Notifications
You must be signed in to change notification settings - Fork 5
67 lines (58 loc) · 1.88 KB
/
Copy pathrelease.yml
File metadata and controls
67 lines (58 loc) · 1.88 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
66
67
name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
packages: write
id-token: write
jobs:
npm:
runs-on: ubuntu-latest
outputs:
version: ${{ env.VERSION }}
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Bun
uses: oven-sh/setup-bun@v2.1.0
- name: Use Cached node_modules
uses: actions/cache@v4.3.0
with:
path: node_modules
key: node-modules-${{ hashFiles('**/bun.lock') }}
restore-keys: |
node-modules-
- name: Install Dependencies
run: bun install
- name: Extract tag version
id: get_version
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Publish to npm
run: bun publish --access public
env:
BUN_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- name: Create GitHub Release
id: create_release
uses: stacksjs/action-releaser@v1.2.7
with:
files: |
./packages/rpx/bin/rpx-linux-x64.zip
./packages/rpx/bin/rpx-linux-arm64.zip
./packages/rpx/bin/rpx-windows-x64.zip
./packages/rpx/bin/rpx-darwin-x64.zip
./packages/rpx/bin/rpx-darwin-arm64.zip
# --- Homebrew tap update support ---
# Path to your Homebrew formula template (update this path as needed)
# homebrewFormula: .github/homebrew-formula.rb
# The owner/repo of your Homebrew tap (update this value as needed)
# homebrewRepo: stacksjs/homebrew-tap
# Optionally uncomment and set these if you need custom values:
# homebrewBranch: main
# homebrewPath: Formula
# homebrewCommitFormat: "update: {{ formula }} to {{ version }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}