Skip to content

Commit

Permalink
ci: change the way to use changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
sor4chi committed Sep 26, 2023
1 parent 4fe6afa commit 3405d0b
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 41 deletions.
39 changes: 0 additions & 39 deletions .github/workflows/changeset.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release

on:
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Setup Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x

- name: Install Dependencies
run: pnpm install

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"lint": "turbo lint",
"format": "turbo format",
"build": "turbo build",
"ci:publish": "pnpm publish --no-git-checks -r",
"ci:version": "pnpm changeset version"
"release": "pnpm build && changeset publish"
},
"devDependencies": {
"@changesets/changelog-github": "^0.4.8",
Expand Down

0 comments on commit 3405d0b

Please sign in to comment.