-
Notifications
You must be signed in to change notification settings - Fork 39
71 lines (57 loc) · 1.67 KB
/
alpha-release.yml
File metadata and controls
71 lines (57 loc) · 1.67 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
68
69
70
71
name: Alpha Release
on:
workflow_dispatch:
permissions:
contents: read
jobs:
alpha-release:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Environment and Install Dependencies (Immutable)
uses: ./.github/actions/setup
- name: Configure Git User
run: |
git config user.name "GitHub Actions Bot"
git config user.email "github-actions[bot]@users.noreply.github.com"
shell: bash
- name: Enter Pre-mode
run: yarn changeset pre enter alpha
shell: bash
- name: Version Packages for Alpha
run: yarn changeset version
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update Lockfile
run: yarn install
shell: bash
- name: Build Packages
run: yarn changeset:prepublish:ci
shell: bash
- name: Configure NPM for Publishing
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
shell: bash
- name: Publish Alpha to NPM
run: yarn changeset publish
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Exit Pre-mode
run: yarn changeset pre exit
shell: bash
- name: Commit Version Changes
run: |
git add .
git commit -m "chore: update package versions after alpha release"
shell: bash
- name: Push Changes and Tags
run: |
git push --follow-tags
shell: bash