Skip to content

Commit be86a67

Browse files
committed
ci: merge workflows
1 parent c4d118c commit be86a67

File tree

2 files changed

+38
-46
lines changed

2 files changed

+38
-46
lines changed

.github/workflows/changesets.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,41 @@ jobs:
3131

3232
- name: Lint
3333
run: bunx eslint
34+
35+
changesets:
36+
name: Process Changesets
37+
runs-on: ubuntu-latest
38+
if: github.event_name == 'push'
39+
concurrency: ${{ github.workflow }}-${{ github.ref }}
40+
permissions:
41+
contents: write
42+
pull-requests: write
43+
steps:
44+
- name: Checkout Repo
45+
uses: actions/checkout@v4
46+
47+
- uses: oven-sh/setup-bun@v2
48+
with:
49+
bun-version: latest
50+
51+
- uses: actions/cache@v4
52+
with:
53+
path: node_modules
54+
key: ${{ runner.os }}-${{ hashFiles('bun.lockb') }}
55+
56+
- name: Install dependencies
57+
run: bun install --frozen-lockfile
58+
59+
- name: Login to npm
60+
run: |
61+
printf '%s\n\n%s\n' "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" "`cat .npmrc`" > .npmrc
62+
63+
- name: Create Release Pull Request or Publish to npm
64+
id: changesets
65+
uses: changesets/action@v1
66+
with:
67+
# This expects you to have a script called release which does a build for your packages and calls changeset publish
68+
publish: bun run release
69+
env:
70+
GITHUB_TOKEN: ${{ github.token }}
71+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)