Skip to content

Commit

Permalink
ci: update (#287)
Browse files Browse the repository at this point in the history
* ci: update

Signed-off-by: donniean <[email protected]>

* chore: add workflow_dispatch trigger to build.yml

Signed-off-by: donniean <[email protected]>

---------

Signed-off-by: donniean <[email protected]>
  • Loading branch information
donniean authored Jul 30, 2024
1 parent c3b996a commit de7a71c
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 4 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build

on:
push:
branches:
- master
workflow_dispatch:

jobs:
release:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18

- name: Install Dependencies
run: yarn install --frozen-lockfile

- name: Build
run: yarn build:all
2 changes: 1 addition & 1 deletion .github/workflows/npm.deprecate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:

jobs:
release:
npm-deprecate:
runs-on: ubuntu-latest

steps:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ jobs:
- name: Install Dependencies
run: yarn install --frozen-lockfile

- name: Build
run: yarn build:all

- 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: yarn release
commit: "chore(release): version packages"
commit: 'chore(release): version packages'
title: Next release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@
],
"scripts": {
"build": "esno scripts/build",
"build:all": "yarn build all",
"build:docs": "cd ./docs && npm run build",
"build:icons": "cd packages/icons && npm run build",
"clean": "rimraf packages/*/{esm,cjs,lib,dist} packages/**/*.tsbuildinfo",
"docs:docgen": "esno scripts/docgen",
"postinstall": "npm run docs:docgen && npm run build:icons",
"jest": "jest",
"lint": "eslint src --ext .ts,.tsx",
"release": "yarn build all && changeset publish",
"release": "changeset publish",
"start:docs": "cd ./docs && npm run dev",
"storybook": "storybook dev -p 7001 -c configs/.storybook --no-open",
"syncpack": "syncpack list-mismatches",
Expand Down

0 comments on commit de7a71c

Please sign in to comment.