Skip to content

chore: repository structure (#107) #72

chore: repository structure (#107)

chore: repository structure (#107) #72

Workflow file for this run

name: Release
on:
push:
paths:
- 'packages/**'
branches: [main]
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Release
runs-on: ubuntu-20.04
steps:
- name: Checkout branch
uses: actions/checkout@v3
- name: Install
uses: ./.github/actions/install
- name: Build
run: pnpm build
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: pnpm release
commit: 'ci: version packages'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create beta release
if: steps.changesets.outputs.published != 'true'
run: |
git checkout main
pnpm version:beta
pnpm release:beta
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}