Skip to content

Commit dd71e63

Browse files
committed
Merge remote-tracking branch 'origin/main' into tasiotas/main
2 parents 9978f41 + d0a592d commit dd71e63

Some content is hidden

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

41 files changed

+13125
-8644
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1717
- run: corepack enable
18-
- uses: actions/setup-node@v4
18+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
1919
with:
2020
node-version: 20
2121
cache: "pnpm"
@@ -30,6 +30,6 @@ jobs:
3030
- name: Build project
3131
run: pnpm run prepack
3232
- name: Coverage
33-
uses: codecov/codecov-action@v4
33+
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5
3434
env:
3535
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/playground.yml

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on: push
33

44
jobs:
55
deploy:
6-
name: "Deploy Playground"
6+
name: 'Deploy Playground'
77
runs-on: ubuntu-latest
88
environment:
99
name: ${{ github.ref == 'refs/heads/main' && 'production' || 'preview' }}
@@ -12,32 +12,22 @@ jobs:
1212
contents: read
1313
id-token: write
1414
defaults:
15-
run:
16-
working-directory: playground
15+
run:
16+
working-directory: playground
1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1919

2020
- name: Install pnpm
21-
uses: pnpm/action-setup@v4
21+
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4
2222

2323
- name: Install Node.js
24-
uses: actions/setup-node@v4
24+
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
2525
with:
2626
node-version: 22
2727
cache: 'pnpm'
2828

2929
- name: Install dependencies
3030
run: pnpm install
3131

32-
- name: Ensure NuxtHub module is installed
33-
run: pnpx nuxthub@latest ensure
34-
3532
- name: Build playground
3633
run: pnpm build
37-
38-
- name: Deploy to NuxtHub
39-
uses: nuxt-hub/action@v1
40-
id: deploy
41-
with:
42-
project-key: color-mode-o0yc
43-
directory: playground/dist
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
permissions: {}
12+
13+
jobs:
14+
nightly:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
18+
- run: corepack enable
19+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
20+
with:
21+
node-version: lts/*
22+
cache: 'pnpm'
23+
24+
- name: Install dependencies
25+
run: pnpm install
26+
27+
- name: Prepare build environment
28+
run: pnpm dev:prepare
29+
30+
- run: pnpm build
31+
32+
- name: publish nightly release
33+
run: pnpm pkg-pr-new publish --compact

.github/workflows/release.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
# Remove default permissions of GITHUB_TOKEN for security
9+
# https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
10+
permissions: {}
11+
12+
jobs:
13+
release:
14+
concurrency:
15+
group: release
16+
permissions:
17+
contents: write
18+
id-token: write
19+
runs-on: ubuntu-latest
20+
timeout-minutes: 20
21+
steps:
22+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
23+
with:
24+
fetch-depth: 0
25+
- run: corepack enable
26+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
27+
with:
28+
node-version: latest
29+
30+
- name: 📦 Install dependencies
31+
run: pnpm install
32+
33+
- name: Build (stub)
34+
run: pnpm dev:prepare
35+
36+
- name: 🛠 Build project
37+
run: pnpm build
38+
39+
- name: 📦 Release
40+
run: pnpm publish --no-git-checks
41+
42+
- name: 🪵 Publish release to GitHub
43+
run: pnpm changelogithub
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.nuxtrc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
typescript.includeWorkspace=true
21
sourcemap=false
3-
4-
# enable TypeScript bundler module resolution - https://www.typescriptlang.org/docs/handbook/modules/reference.html#bundler
5-
experimental.typescriptBundlerResolution=true

0 commit comments

Comments
 (0)