Skip to content

Commit fcb94eb

Browse files
authored
feat: Updated vue library and template (#292)
* feat: Updated vue library and template * chore: Remove deprecated react lib and template * feat: build pipeline * chore(release): publish v1.0.0 * feat: avoid pnpm command conflict * feat: update workflows * feat: update logo * chore(release): publish v1.0.1 * chore: Check for updates * chore(release): publish v1.0.2 * chore: Fix Assets components * chore: fix publishing scripts * fix: script typos * chore: adjust prepublish scripts * chore(release): Bumped @ignt/vue-lib version in template * chore(release): publish v1.0.3 * chore: Pass build errors * chore(release): Bumped @ignt/vue-lib version in template * chore(release): publish v1.0.4 * chore: Export types * chore(release): Bumped @ignt/vue-lib version in template * chore(release): publish v1.0.5 * fix: clear up template build errors
1 parent f74fead commit fcb94eb

188 files changed

Lines changed: 21880 additions & 47128 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/alpha-release.yml

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,23 @@ jobs:
1515
- uses: actions/checkout@v3
1616
- uses: actions/setup-node@v3
1717
with:
18-
node-version: 16
18+
node-version: 20
1919
registry-url: 'https://registry.npmjs.org'
2020
scope: ignt
21+
- uses: pnpm/action-setup@v4
22+
with:
23+
version: 10
2124

25+
- name: Configure git
26+
run: git config --global user.email "hello@ignite.com" && git config --global user.name "Lerna CI"
27+
2228
- name: Build
23-
run: npm run build
29+
run: pnpm build
2430

2531
- name: Publish
26-
run: npm run alpha
27-
env:
28-
NODE_AUTH_TOKEN: ${{secrets.sp_npm_token}}
29-
30-
- name: Install Ignite CLI
31-
run: 'curl https://get.ignite.com/cli! | bash'
32-
33-
- name: Install alpha
34-
run: lerna exec --scope='@starport/template' -- npm i @starport/vue@alpha @starport/vuex@alpha
32+
run: pnpm alpha
3533

36-
- name: Build
37-
run: npm run build
38-
39-
- name: Deploy
40-
uses: netlify/actions/cli@master
41-
with:
42-
args: deploy --alias 'alpha'
4334
env:
44-
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
45-
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
46-
35+
GH_TOKEN: ${{ secrets.sp_gh_token }}
36+
GITHUB_TOKEN: ${{ secrets.sp_gh_token }}
37+
NODE_AUTH_TOKEN: ${{secrets.sp_npm_token}}

.github/workflows/major-release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,21 @@ jobs:
1515
- uses: actions/checkout@v3
1616
- uses: actions/setup-node@v3
1717
with:
18-
node-version: 16
18+
node-version: 20
1919
registry-url: 'https://registry.npmjs.org'
2020
scope: ignt
21+
- uses: pnpm/action-setup@v4
22+
with:
23+
version: 10
2124

2225
- name: Configure git
2326
run: git config --global user.email "hello@ignite.com" && git config --global user.name "Lerna CI"
2427

2528
- name: Build
26-
run: npm run build
29+
run: pnpm build
2730

2831
- name: Publish
29-
run: npm run major
32+
run: pnpm major
3033

3134
env:
3235
GH_TOKEN: ${{ secrets.sp_gh_token }}

.github/workflows/minor-release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,21 @@ jobs:
1515
- uses: actions/checkout@v3
1616
- uses: actions/setup-node@v3
1717
with:
18-
node-version: 16
18+
node-version: 20
1919
registry-url: 'https://registry.npmjs.org'
2020
scope: ignt
21+
- uses: pnpm/action-setup@v4
22+
with:
23+
version: 10
2124

2225
- name: Configure git
2326
run: git config --global user.email "hello@ignite.com" && git config --global user.name "Lerna CI"
2427

2528
- name: Build
26-
run: npm run build
29+
run: pnpm build
2730

2831
- name: Publish
29-
run: npm run minor
32+
run: pnpm minor
3033

3134
env:
3235
GH_TOKEN: ${{ secrets.sp_gh_token }}

.github/workflows/patch-release.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,20 @@ jobs:
1515
- uses: actions/checkout@v3
1616
- uses: actions/setup-node@v3
1717
with:
18-
node-version: 16
18+
node-version: 20
1919
registry-url: 'https://registry.npmjs.org'
2020
scope: ignt
21-
21+
- uses: pnpm/action-setup@v4
22+
with:
23+
version: 10
2224
- name: Configure git
2325
run: git config --global user.email "hello@ignite.com" && git config --global user.name "Lerna CI"
2426

2527
- name: Build
26-
run: npm run build
28+
run: pnpm build
2729

2830
- name: Publish
29-
run: npm run patch
31+
run: pnpm patchrel
3032

3133
env:
3234
GH_TOKEN: ${{ secrets.sp_gh_token }}

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"packages": [
33
"packages/*"
44
],
5-
"version": "0.6.1"
5+
"version": "1.0.5"
66
}

major.cjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const semver = require('semver');
2+
const fs = require('fs');
3+
const lerna = require('./lerna.json');
4+
const templatePkg = require('./packages/vue-template/package.json');
5+
const bumped = semver.parse(lerna.version, { loose: true }).inc('major').version;
6+
templatePkg.devDependencies['@ignt/vue-library'] = `^${bumped}`;
7+
8+
fs.writeFileSync('./packages/vue-template/package.json', JSON.stringify(templatePkg, null, 2));
9+
console.log(`Bumped @ignt/vue-library to version ${bumped} in vue-template package.json`);

minor.cjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const semver = require('semver');
2+
const fs = require('fs');
3+
const lerna = require('./lerna.json');
4+
const templatePkg = require('./packages/vue-template/package.json');
5+
const bumped = semver.parse(lerna.version, { loose: true }).inc('minor').version;
6+
templatePkg.devDependencies['@ignt/vue-library'] = `^${bumped}`;
7+
8+
fs.writeFileSync('./packages/vue-template/package.json', JSON.stringify(templatePkg, null, 2));
9+
console.log(`Bumped @ignt/vue-library to version ${bumped} in vue-template package.json`);

0 commit comments

Comments
 (0)