Skip to content

fix: ensure build package is built in CI before being published #9

fix: ensure build package is built in CI before being published

fix: ensure build package is built in CI before being published #9

Workflow file for this run

name: 🆕 Release management
on:
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- '.vscode/**'
- 'images/**'
- '*.md'
concurrency: ${{ github.workflow }}-${{ github.ref }}
permissions:
contents: write
pull-requests: write
jobs:
main:
name: Publish changed packages
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v2
- name: 🏗 Setup Node
uses: actions/setup-node@v2
with:
node-version: 18.x
cache: yarn
- name: 📦 Install dependencies
run: yarn install
- name: 🆕 Publish to npm or create release PR
id: changesets
uses: changesets/action@v1
with:
title: '🆕 Upcoming release'
commit: 'chore: bump version'
version: yarn version
publish: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}