chore: update versions (#175) #64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |