Skip to content

Commit

Permalink
ci: Update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
loveakinlesi committed Sep 2, 2024
1 parent 654a90f commit 8773d13
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 21 deletions.
16 changes: 5 additions & 11 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": [
"@changesets/changelog-github",
{
"repo": "loveakinlesi/react-dynamic-fonts",
"release": true
}
],
"access": "public",
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
"bumpVersionsWithWorkspaceProtocolOnly": true
}
5 changes: 0 additions & 5 deletions .changeset/gorgeous-bikes-pull.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/sour-pens-trade.md

This file was deleted.

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

on:
push:
branches:
- main

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

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

- name: Install Dependencies
run: npm ci

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

- name: Create GitHub Release
uses: actions/create-release@v1
if: steps.changesets.outputs.published == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.changesets.outputs.publishedPackages[0].version }}
release_name: Release ${{ steps.changesets.outputs.publishedPackages[0].version }}
body: ${{ steps.changesets.outputs.publishedPackages[0].notes }}

0 comments on commit 8773d13

Please sign in to comment.