forked from microsoft/fluentui-react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (44 loc) · 1.52 KB
/
changesets-version.yml
File metadata and controls
54 lines (44 loc) · 1.52 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
name: Changesets Version Bump
on:
push:
branches: [main]
workflow_dispatch:
jobs:
version:
name: Create Version Bump PR
runs-on: ubuntu-latest
# Remove this once we setup react-native-sdk[bot] with this repo
permissions:
contents: write # for GH releases and Git tags (Changesets)
pull-requests: write # version PRs (Changesets)
if: ${{ github.repository == 'microsoft/fluentui-react-native' }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up toolchain
uses: microsoft/react-native-test-app/.github/actions/setup-toolchain@5.0.14
- name: Install dependencies
run: |
yarn install --immutable
- name: Build packages
run: yarn buildci
# Bring this back once we setup react-native-sdk[bot] with this repo
# - name: Generate token for version PR
# uses: actions/create-github-app-token@v2
# id: app-token
# with:
# app-id: ${{ vars.APP_ID }}
# private-key: ${{ secrets.PRIVATE_KEY }}
# permissions: |
# contents: write
# pull-requests: write
- name: Create Version Bump PR
id: changesets
uses: changesets/action@v1
with:
version: yarn changeset:version
createGithubReleases: false
env:
# Switch token once we setup react-native-sdk[bot] with this repo
# GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}