-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (35 loc) · 983 Bytes
/
stable.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: Stable Release
on:
push:
branches:
- main
- 0.x
jobs:
release:
name: release
if: github.repository == 'node-real/walletkit'
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Checkout code repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: ./.github/actions/setup
with:
npm_token: ${{ secrets.NPM_TOKEN }}
- name: Build packages
run: pnpm build
- name: Exit pre mode
if: github.event.commits[0].author.username != 'github-actions[bot]'
run: pnpm ci:exit
- name: Create and publish versions
uses: changesets/action@v1
with:
version: pnpm ci:stable-version
publish: pnpm ci:publish
commit: 'chore: update versions'
title: 'chore: update versions'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}