-
-
Notifications
You must be signed in to change notification settings - Fork 48
63 lines (52 loc) · 1.61 KB
/
Copy pathrelease.yml
File metadata and controls
63 lines (52 loc) · 1.61 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
name: Release
on:
workflow_dispatch:
inputs:
version:
description: "Release version or increment"
required: true
default: "patch"
type: string
permissions:
contents: read
id-token: write
concurrency:
group: release
cancel-in-progress: false
jobs:
release:
name: Publish packages and GitHub release
runs-on: macos-26
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
ref: main
token: ${{ secrets.RELEASE_IT_GITHUB_TOKEN }}
- uses: actions/setup-node@v6
with:
node-version: 24
registry-url: "https://registry.npmjs.org"
package-manager-cache: false
- uses: oven-sh/setup-bun@v2
- name: Setup Ruby (bundle)
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3.0
bundler-cache: true
working-directory: example
- name: Select Xcode 26.5
run: sudo xcode-select -s "/Applications/Xcode_26.5.app/Contents/Developer"
- name: Install npm dependencies (bun)
run: bun install
- name: Configure Git author
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Release
run: bun release "${{ inputs.version }}" --ci --no-git.requireUpstream
env:
RELEASE_IT_GITHUB_TOKEN: ${{ secrets.RELEASE_IT_GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_CACHE: ${{ runner.temp }}/npm-cache
NPM_CONFIG_PROVENANCE: "true"