-
Notifications
You must be signed in to change notification settings - Fork 311
37 lines (34 loc) · 976 Bytes
/
changeset.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
name: Changeset
on:
push:
branches:
- develop
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Changeset
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
filter: blob:none
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".node-version"
cache: "pnpm"
- name: Authenticate NPM
uses: DimensionDev/github-token-action@latest
with:
registry: true
- run: git config --global url."https://github.com/".insteadOf [email protected]
- run: pnpm install
- uses: changesets/action@v1
with:
publish: npx gulp changeset-release
commit: "chore: changeset release"
title: "chore: changeset release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}