Skip to content

Commit

Permalink
Add changeset workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ryangoree committed Feb 14, 2024
1 parent 1c4fd23 commit 8cc8233
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish-clide.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: publish clide-js npm package

on:
release:
types: [published]
workflow_dispatch:
# release:
# types: [published]

jobs:
publish:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/publish-command-menu.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: publish clide-plugin-command-menu npm package

on:
release:
types: [published]
workflow_dispatch:
# release:
# types: [published]

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

on:
push:
branches:
- main

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

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4

- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'yarn'

- name: Install dependencies
run: yarn --frozen-lockfile

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

0 comments on commit 8cc8233

Please sign in to comment.