diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..4ed5ed26 --- /dev/null +++ b/.github/workflows/build.yml @@ -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 diff --git a/.github/workflows/npm.deprecate.yml b/.github/workflows/npm.deprecate.yml index a44aace9..9e81f163 100644 --- a/.github/workflows/npm.deprecate.yml +++ b/.github/workflows/npm.deprecate.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: jobs: - release: + npm-deprecate: runs-on: ubuntu-latest steps: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9c63f710..c0dd9887 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }} diff --git a/package.json b/package.json index 3b670900..54760128 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ ], "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", @@ -19,7 +20,7 @@ "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",