Skip to content

Commit

Permalink
add changesets action (#13)
Browse files Browse the repository at this point in the history
Co-authored-by: kanary <[email protected]>
  • Loading branch information
Kanary159357 and kanary authored Apr 22, 2024
1 parent 50324a7 commit cd06c43
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release

on:
push:
branches:
- main

jobs:
release:
name: Release
if: github.repository == 'channel-io/shared-configs'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: yarn

- name: Install dependencies
run: yarn

- name: Create release Pull Request or publish to NPM
id: changesets
uses: changesets/action@v1
with:
version: yarn version-packages
publish: yarn release
commit: 'ci(changesets): version packages'
title: 'ci(changesets): version packages'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit cd06c43

Please sign in to comment.