Skip to content

Commit

Permalink
ci: merge workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
axelrindle committed Dec 6, 2024
1 parent c4d118c commit be86a67
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 46 deletions.
46 changes: 0 additions & 46 deletions .github/workflows/changesets.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,41 @@ jobs:

- name: Lint
run: bunx eslint

changesets:
name: Process Changesets
runs-on: ubuntu-latest
if: github.event_name == 'push'
concurrency: ${{ github.workflow }}-${{ github.ref }}
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout Repo
uses: actions/checkout@v4

- uses: oven-sh/setup-bun@v2
with:
bun-version: latest

- uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-${{ hashFiles('bun.lockb') }}

- name: Install dependencies
run: bun install --frozen-lockfile

- name: Login to npm
run: |
printf '%s\n\n%s\n' "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" "`cat .npmrc`" > .npmrc
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: bun run release
env:
GITHUB_TOKEN: ${{ github.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit be86a67

Please sign in to comment.