Skip to content

Commit 27a8d78

Browse files
committedFeb 23, 2024
chore: add additional automated release capabilities
1 parent 0c32d70 commit 27a8d78

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1516
-516
lines changed
 
+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Promote LTS Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: 'The existing version to promote (e.g. `4.0.0`)'
8+
type: string
9+
channel:
10+
description: 'The NPM Distribution Tag (e.g. `lts` or `lts-4-8`)'
11+
type: string
12+
update-branch:
13+
description: 'Whether to update the associated LTS branch to the same commit as the tag'
14+
default: true
15+
type: boolean
16+
17+
env:
18+
TURBO_API: http://127.0.0.1:9080
19+
TURBO_TOKEN: this-is-not-a-secret
20+
TURBO_TEAM: myself
21+
22+
jobs:
23+
release:
24+
name: Run Release Script
25+
runs-on: ubuntu-latest
26+
environment: deployment
27+
steps:
28+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
29+
with:
30+
fetch-depth: 1
31+
fetch-tags: true
32+
progress: false
33+
token: ${{ secrets.GH_DEPLOY_TOKEN }}
34+
- uses: ./.github/actions/setup
35+
with:
36+
install: true
37+
repo-token: ${{ secrets.GH_DEPLOY_TOKEN }}
38+
- name: Make sure git user is setup
39+
run: |
40+
git config --local user.email ${{ secrets.GH_DEPLOY_EMAIL }}
41+
git config --local user.name ${{ secrets.GH_DEPLOY_NAME }}
42+
- name: Publish with script
43+
run: bun release exec promote --v=${{ github.event.inputs.version }} --t=${{ github.event.inputs.channel }} -u ${{ github.event.inputs.update-branch }}
44+
env:
45+
FORCE_COLOR: 2
46+
CI: true
47+
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}

‎.github/workflows/alpha-release.yml ‎.github/workflows/release/publish-canary.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Alpha Releases
1+
name: Publish Canary Release
22

33
on:
44
workflow_dispatch:
@@ -48,7 +48,7 @@ jobs:
4848
git config --local user.email ${{ secrets.GH_DEPLOY_EMAIL }}
4949
git config --local user.name ${{ secrets.GH_DEPLOY_NAME }}
5050
- name: Publish with script
51-
run: bun run publish canary -i ${{ github.event.inputs.increment }}
51+
run: bun release canary -i ${{ github.event.inputs.increment }}
5252
env:
5353
FORCE_COLOR: 2
5454
CI: true

0 commit comments

Comments
 (0)
Failed to load comments.