Skip to content

Commit

Permalink
chore: simplify for nightly release
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Jan 9, 2024
1 parent 801cd5a commit db78043
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 349 deletions.
32 changes: 0 additions & 32 deletions .github/scripts/bump-edge.ts

This file was deleted.

23 changes: 0 additions & 23 deletions .github/scripts/release-edge.sh

This file was deleted.

120 changes: 0 additions & 120 deletions .github/scripts/utils.ts

This file was deleted.

75 changes: 24 additions & 51 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,63 +1,36 @@
name: ci

name: Publish nuxt-component-meta (Nightly)
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev

jobs:
test:
runs-on: ubuntu-latest
nightly:
strategy:
matrix:
os: [ubuntu-latest]
node: [20]

runs-on: ${{ matrix.os }}
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4 # v4
- name: Add pnpm
run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: '18'
- uses: pnpm/[email protected]
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: false
- run: pnpm install
- run: pnpm dev:prepare
- run: pnpm lint
- run: pnpm prepack
- run: pnpm dev:generate
- run: pnpm test

release-edge:
if: |
github.event_name == 'push' &&
!contains(github.event.head_commit.message, '[skip-release]') &&
!contains(github.event.head_commit.message, 'docs')
needs:
- test
runs-on: ubuntu-latest
timeout-minutes: 20

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18'
- uses: pnpm/[email protected]
name: Install pnpm
id: pnpm-install
with:
version: 8
node-version: 20
registry-url: "https://registry.npmjs.org/"
cache: "pnpm"
- name: Install dependencies
run: pnpm install

- run: pnpm dev:prepare

- name: Release Edge
run: bash ./.github/scripts/release-edge.sh
- name: Prepare
run: pnpm dev:prepare
- name: Test
run: pnpm test
- name: Release Nightly
run: pnpm changelogen --bump --canary --publish --publishTag nightly
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
NPM_CONFIG_PROVENANCE: true
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"release": "pnpm test && release-it"
},
"dependencies": {
"@nuxt/kit": "^3.9.0",
"@nuxt/kit": "^3.9.1",
"citty": "^0.1.5",
"scule": "^1.1.1",
"typescript": "^5.3.3",
Expand All @@ -43,10 +43,10 @@
"changelogen": "^0.5.5",
"eslint": "^8.56.0",
"jiti": "^1.21.0",
"nuxt": "^3.9.0",
"nuxt": "^3.9.1",
"release-it": "^17.0.1",
"vitest": "^1.1.0",
"vue": "^3.3.13"
"vitest": "^1.1.3",
"vue": "^3.4.7"
},
"build": {
"entries": [
Expand Down
27 changes: 0 additions & 27 deletions playground/components/pinceau/TestPinceau.vue

This file was deleted.

11 changes: 0 additions & 11 deletions playground/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,12 @@ export default defineNuxtConfig({
prefix: '',
global: true
},
{
path: '~/components/pinceau',
prefix: '',
global: true
},
'~/components'
]
},

modules: [
'@nuxt/content',
'pinceau/nuxt',
nuxtMetaModule as any
],

Expand Down Expand Up @@ -48,11 +42,6 @@ export default defineNuxtConfig({
]
},

pinceau: {
followSymbolicLinks: false,
componentMetaSupport: true
},

typescript: {
includeWorkspace: true
}
Expand Down
3 changes: 1 addition & 2 deletions playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"devDependencies": {
"@nuxt/content": "^2.3.0",
"nuxt": "^3.0.0",
"nuxt-component-meta": "*",
"pinceau": "^0.8.9"
"nuxt-component-meta": "*"
},
"scripts": {
"dev": "nuxi dev",
Expand Down
Loading

0 comments on commit db78043

Please sign in to comment.