2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-05-15 11:59:37 +03:00

chore: migrate to changeset (#182)

* fix: initial support to changeset

* fix: changeset config

* fix: vue3 changeset

* feat: add github publish action for changeset
This commit is contained in:
Nikolay Kost
2023-07-24 05:16:14 +03:00
committed by GitHub
parent ee044f3085
commit 49065d239b
6 changed files with 2814 additions and 449 deletions
+37
View File
@@ -0,0 +1,37 @@
name: Release
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
publish:
runs-on: ubuntu-latest
env:
NODE_OPTIONS: --max-old-space-size=4096
outputs:
published: ${{ steps.changesets.outputs.published }}
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Install Dependencies
run: npm ci
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: npm run release
commit: 'chore(release): release'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}