-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from ineka-dev/refactor/tooling
Refactor and updated tooling
- Loading branch information
Showing
28 changed files
with
4,462 additions
and
19,273 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Changesets | ||
|
||
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works | ||
with multi-package repos, or single-package repos to help you version and publish your code. You can | ||
find the full documentation for it [in our repository](https://github.com/changesets/changesets) | ||
|
||
We have a quick list of common questions to get you started engaging with this project in | ||
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", | ||
"changelog": ["@changesets/changelog-github", { "repo": "ineka/engine" }], | ||
"commit": false, | ||
"fixed": [], | ||
"linked": [], | ||
"access": "public", | ||
"baseBranch": "main", | ||
"updateInternalDependencies": "patch", | ||
"ignore": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@ineka/engine": patch | ||
--- | ||
|
||
Updated project tooling |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,28 @@ | ||
name: 'PR check' | ||
name: PR check | ||
on: pull_request | ||
jobs: | ||
build-and-test: | ||
name: 'Build and test project' | ||
name: Build and lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: 'Use Node.js LTS' | ||
uses: actions/setup-node@v2 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
node-version: lts/* | ||
- name: 'Cache node modules' | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-node-modules | ||
version: 9 | ||
|
||
- name: Use Node.js LTS | ||
uses: actions/setup-node@v4 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- name: 'Install dependencies' | ||
run: npm ci --prefer-offline | ||
- name: 'Build project' | ||
run: npm run build | ||
- name: 'Lint project code' | ||
run: npm run lint | ||
node-version: lts/* | ||
cache: pnpm | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Build | ||
run: pnpm build | ||
|
||
- name: Lint | ||
run: pnpm lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,64 @@ | ||
name: 'Documentation generation' | ||
name: Documentation generation | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
build-and-test: | ||
name: 'Build and test project before generating documentation' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: 'Use Node.js LTS' | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: lts/* | ||
- name: 'Cache node modules' | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- name: 'Install dependencies' | ||
run: npm ci --prefer-offline | ||
- name: 'Build project' | ||
run: npm run build | ||
- name: 'Lint project code' | ||
run: npm run lint | ||
# build-and-test: | ||
# name: Build and test project before generating documentation | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - name: Use Node.js LTS | ||
# uses: actions/setup-node@v2 | ||
# with: | ||
# node-version: lts/* | ||
# - name: Cache node modules | ||
# uses: actions/cache@v2 | ||
# env: | ||
# cache-name: cache-node-modules | ||
# with: | ||
# path: ~/.npm | ||
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
# restore-keys: | | ||
# ${{ runner.os }}-build-${{ env.cache-name }}- | ||
# ${{ runner.os }}-build- | ||
# ${{ runner.os }}- | ||
# - name: Install dependencies | ||
# run: npm ci --prefer-offline | ||
# - name: Build project | ||
# run: npm run build | ||
# - name: Lint project code | ||
# run: npm run lint | ||
|
||
build-docs: | ||
name: 'Build and deploy documentation' | ||
runs-on: ubuntu-latest | ||
needs: [build-and-test] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: 'Use Node.js LTS' | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: lts/* | ||
- name: 'Cache node modules' | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- name: 'Install dependencies' | ||
run: npm ci --prefer-offline | ||
- name: 'Generate documentation' | ||
run: npm run docs | ||
- name: 'Deploy to GitHub Pages' | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./docs | ||
publish_branch: docs | ||
# build-docs: | ||
# name: Build and deploy documentation | ||
# runs-on: ubuntu-latest | ||
# needs: [build-and-test] | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - name: Use Node.js LTS | ||
# uses: actions/setup-node@v2 | ||
# with: | ||
# node-version: lts/* | ||
# - name: Cache node modules | ||
# uses: actions/cache@v2 | ||
# env: | ||
# cache-name: cache-node-modules | ||
# with: | ||
# path: ~/.npm | ||
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
# restore-keys: | | ||
# ${{ runner.os }}-build-${{ env.cache-name }}- | ||
# ${{ runner.os }}-build- | ||
# ${{ runner.os }}- | ||
# - name: Install dependencies | ||
# run: npm ci --prefer-offline | ||
# - name: Generate documentation | ||
# run: npm run docs | ||
# - name: Deploy to GitHub Pages | ||
# uses: peaceiris/actions-gh-pages@v3 | ||
# with: | ||
# github_token: ${{ secrets.GITHUB_TOKEN }} | ||
# publish_dir: ./docs | ||
# publish_branch: docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,72 +1,70 @@ | ||
name: 'Release' | ||
name: Release | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- next | ||
- beta | ||
- alpha | ||
jobs: | ||
build-and-test: | ||
name: 'Build and test project before release' | ||
build: | ||
name: Build and test project before release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: 'Use Node.js LTS' | ||
uses: actions/setup-node@v2 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
node-version: lts/* | ||
- name: 'Cache node modules' | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-node-modules | ||
version: 9 | ||
|
||
- name: Use Node.js LTS | ||
uses: actions/setup-node@v4 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- name: 'Install dependencies' | ||
run: npm ci --prefer-offline | ||
- name: 'Build project' | ||
run: npm run build | ||
- name: 'Lint project code' | ||
run: npm run lint | ||
- uses: actions/upload-artifact@v2 | ||
node-version: lts/* | ||
cache: pnpm | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Build | ||
run: pnpm build | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: build | ||
path: dist | ||
|
||
|
||
release: | ||
name: 'Release' | ||
name: Release | ||
runs-on: ubuntu-latest | ||
needs: [build-and-test] | ||
needs: [build] | ||
with: | ||
fetch-depth: 0 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: 'Use Node.js LTS' | ||
uses: actions/setup-node@v2 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
node-version: lts/* | ||
- name: 'Cache node modules' | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-node-modules | ||
version: 9 | ||
|
||
- name: Use Node.js LTS | ||
uses: actions/setup-node@v4 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- name: 'Install dependencies' | ||
run: npm ci --prefer-offline | ||
- uses: actions/download-artifact@v2 | ||
node-version: lts/* | ||
cache: pnpm | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: build | ||
path: dist | ||
- env: | ||
|
||
- name: Create Release Pull Request or Publish to npm | ||
uses: changesets/action@v1 | ||
with: | ||
publish: pnpm release | ||
version: pnpm version | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
run: npx semantic-release |
Oops, something went wrong.