-
-
Notifications
You must be signed in to change notification settings - Fork 41
43 lines (32 loc) · 1.09 KB
/
release-main.yml
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
name: Release latest version
on:
workflow_dispatch:
inputs:
version:
description: Version number (x.y.z format)
required: true
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20.3.1
cache: yarn
- run: yarn
- run: yarn config set npmAuthToken ${{ secrets.NODE_AUTH_TOKEN }}
- run: yarn @bud release --tag latest --version ${{ github.event.inputs.version }} --registry https://registry.npmjs.org
- run: yarn config set npmAuthToken "${NPM_AUTH_TOKEN:-fallback}"
- run: |
git config user.name "Roots Ladybud"
git config user.email "<>"
- run: git checkout -b v${{ github.event.inputs.version }}
- run: |
git commit -am "chore:none Bump @roots/bud to v${{ github.event.inputs.version }}"
git push -u origin v${{ github.event.inputs.version }}
- run: |
git tag v${{ github.event.inputs.version }}
git push --tags