1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-21 17:34:25 +04:00

Compare commits

...

15 Commits

Author SHA1 Message Date
codecalm
1b04679c2d release script update 2024-12-03 19:24:07 +01:00
codecalm
54454f71d1 Merge https://github.com/tabler/tabler into dev-changesets 2024-12-03 19:19:28 +01:00
codecalm
914bc6a21a PR fixes 2024-09-16 20:50:04 +02:00
codecalm
5be3c0e236 build fix 2024-09-16 20:46:01 +02:00
codecalm
3dd6b3b8bc build fix 2024-09-16 20:40:42 +02:00
codecalm
58a5b4c2bd gitignore 2024-09-16 20:37:23 +02:00
codecalm
a2cbd50187 ruby version file 2024-09-16 20:34:47 +02:00
codecalm
4fe9407a19 build fix 2024-09-16 20:33:40 +02:00
codecalm
80dd505973 bundler init 2024-09-16 20:32:48 +02:00
codecalm
191b5f0636 enable provenance 2024-09-16 20:30:31 +02:00
codecalm
5330aaea52 enable pnpm 2024-09-16 20:28:47 +02:00
codecalm
df593d2b05 build fix 2024-09-16 20:27:34 +02:00
codecalm
e357ab4e4d test package release 2024-09-16 20:26:35 +02:00
codecalm
3388a68447 pre release build 2024-09-16 20:14:41 +02:00
codecalm
b0d759f328 init pre release 2024-09-16 20:12:38 +02:00
6 changed files with 80 additions and 1511 deletions

63
.github/workflows/release-beta.yml vendored Normal file
View File

@@ -0,0 +1,63 @@
name: Pre-release
on:
push:
branches:
- beta
- dev-changesets
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: PR or Release
if: ${{ github.repository_owner == 'tabler' }}
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Enable corepack
run: corepack enable pnpm
- name: Setup Node.js 18
uses: actions/setup-node@v4
with:
cache: 'pnpm'
node-version: 18
registry-url: 'https://registry.npmjs.org'
- name: Install Dependencies
run: pnpm install
- name: Build Package
run: pnpm run build
- name: Enable Pre-release
run: pnpm changeset pre enter beta
- name: Creating .npmrc
run: |
cat << EOF > "$HOME/.npmrc"
//registry.npmjs.org/:_authToken=$NPM_TOKEN
EOF
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Create Release Pull Request
uses: changesets/action@v1
with:
# Note: pnpm install after versioning is necessary to refresh lockfile
version: pnpm run version
publish: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true

View File

@@ -19,19 +19,26 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Enable corepack
run: corepack enable pnpm
- name: Setup Node.js 18
uses: actions/setup-node@v4
with:
cache: 'pnpm'
node-version: 18
- name: Install PNPM
uses: pnpm/action-setup@v4
with:
version: 8
registry-url: 'https://registry.npmjs.org'
- name: Install Dependencies
run: pnpm install
- name: Build Package
run: pnpm run build
- name: Creating .npmrc
run: |
cat << EOF > "$HOME/.npmrc"

1
.gitignore vendored
View File

@@ -22,6 +22,7 @@ node_modules/
/src/pages/playground.html
/src/pages/playground-*.html
/src/pages/features.html
vendor/
.pnp.loader.mjs
.pnp.cjs

1
.ruby-version Normal file
View File

@@ -0,0 +1 @@
3.2.2

View File

@@ -1,6 +1,6 @@
{
"name": "@tabler/core",
"version": "1.0.0-beta21",
"version": "0.0.1",
"description": "Premium and Open Source dashboard template with responsive and high quality UI.",
"homepage": "https://tabler.io",
"scripts": {
@@ -12,7 +12,8 @@
"preview": "gulp build --preview",
"svg-optimize": "svgo -f svg/brand --pretty",
"unused-files": "node .build/unused-files.js",
"release": "release-it",
"release": "changeset publish",
"version": "changeset version && pnpm install",
"svg-icons": "node .build/import-icons.js",
"bundlewatch": "bundlewatch",
"storybook": "start-storybook -p 6006",
@@ -173,7 +174,6 @@
"plyr": "^3.7.8",
"postcss": "^8.4.49",
"prettier": "^2.8.8",
"release-it": "^15.11.0",
"request": "^2.88.2",
"rollup": "2.79.2",
"rollup-plugin-babel": "^4.4.0",
@@ -265,20 +265,6 @@
"optional": true
}
},
"release-it": {
"hooks": {
"after:bump": "gulp build --latest-version ${latestVersion} --new-version ${version} && gulp build-demo",
"after:release": "echo Successfully released ${name} v${latestVersion} to ${repo.repository}."
},
"git": {
"requireCleanWorkingDir": false,
"addUntrackedFiles": true,
"tagName": "v${version}"
},
"github": {
"release": true
}
},
"directories": {
"doc": "docs"
}

1489
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff