-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (36 loc) · 1008 Bytes
/
alpha.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
41
name: Alpha release
on:
push:
branches:
- alpha
- 0.x-alpha
- 1.x-alpha
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: Enter pre mode
if: github.event.commits[0].author.username != 'github-actions[bot]'
run: pnpm ci:enter
- name: Create and publish versions
uses: changesets/action@v1
with:
version: pnpm ci:alpha-version
publish: pnpm ci:publish
commit: 'chore: update versions'
title: 'chore: update versions'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}