Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 43 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,21 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.17.1
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
node-version: 24
cache: 'pnpm'
- name: Install Packages
run: npm ci
run: pnpm install --frozen-lockfile
- name: Lint Files
run: npm run lint
run: pnpm run lint
- name: Typecheck
run: npm run typecheck
run: pnpm run typecheck

tests:
name: Tests
Expand All @@ -35,12 +39,42 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.17.1
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
node-version: 24
cache: 'pnpm'
- name: Install Packages
run: npm ci
run: pnpm install --frozen-lockfile
- name: Unit Tests
run: npm run test
run: pnpm run test

examples:
name: Build examples
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.17.1
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 24
cache: 'pnpm'
- name: Install Packages
run: pnpm install --frozen-lockfile
- name: Build app-builder
run: pnpm run build
- name: Rebuild bin links
run: pnpm install --frozen-lockfile
- name: Build examples
run: pnpm --filter "@examples/*" build
13 changes: 9 additions & 4 deletions .github/workflows/release-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,20 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.17.1
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 24
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'
- name: Install Packages
run: npm ci
run: pnpm install --frozen-lockfile
- name: Unit tests
run: npm test
run: pnpm test
- name: Bump version
run: |
echo ${{ github.event.inputs.version }}
Expand All @@ -48,6 +53,6 @@ jobs:
npm version ${{ github.event.inputs.version }} --git-tag-version=false
fi
- name: Publish version
run: npm publish --tag beta --access public
run: pnpm publish --tag beta --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.GRAVITY_UI_BOT_NPM_TOKEN }}
14 changes: 11 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,16 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: gravity-ui/release-action@v1
- name: Generate token
id: generate-token
uses: actions/create-github-app-token@v2
with:
github-token: ${{ secrets.GRAVITY_UI_BOT_GITHUB_TOKEN }}
app-id: ${{ secrets.GRAVITY_UI_APP_ID }}
private-key: ${{ secrets.GRAVITY_UI_APP_PRIVATE_KEY }}
- uses: gravity-ui/release-action@v2
with:
github-token: ${{ steps.generate-token.outputs.token }}
npm-token: ${{ secrets.GRAVITY_UI_BOT_NPM_TOKEN }}
node-version: 18
node-version: 24
package-manager: pnpm
pnpm-version: 10.17.1
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ node_modules
# Artifacts
dist

examples/**/package-lock.json
examples/**/pnpm-lock.yaml
.DS_Store
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
registry=https://registry.npmjs.org
update-notifier=false
link-workspace-packages=true
prefer-workspace-packages=true
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.17.1
24
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dist
CHANGELOG.md
CONTRIBUTING.md
package-lock.json
pnpm-lock.yaml
1 change: 0 additions & 1 deletion examples/ssr/.npmrc

This file was deleted.

5 changes: 3 additions & 2 deletions examples/ssr/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"name": "ssr",
"name": "@examples/ssr",
"version": "1.0.0",
"description": "",
"type": "module",
"private": true,
"scripts": {
"dev": "app-builder dev",
"build": "app-builder build",
Expand All @@ -14,7 +15,7 @@
"keywords": [],
"license": "MIT",
"devDependencies": {
"@gravity-ui/app-builder": "*",
"@gravity-ui/app-builder": "workspace:*",
"@gravity-ui/eslint-config": "^3.2.0",
"@gravity-ui/prettier-config": "^1.1.0",
"@gravity-ui/stylelint-config": "^4.0.1",
Expand Down
Loading
Loading