-
Notifications
You must be signed in to change notification settings - Fork 11
40 lines (37 loc) · 980 Bytes
/
release.yaml
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
name: Release
on:
push:
branches:
- main
- master
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
version-pull-request:
name: Version Pull Request
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: write
id-token: write
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Install dependencies
uses: ./.github/actions/install-dependencies
with:
node_version: 20
- name: Build
uses: ./.github/actions/build
- name: Create Pull Request and Publish
uses: changesets/action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
with:
title: "Version Packages"
commit: "version packages"
createGithubReleases: true
publish: "npm run changeset:publish"