Skip to content

Commit d2e2238

Browse files
authored
chore: release v0.10.0 (#2533)
2 parents 1f574e5 + d0eb97f commit d2e2238

227 files changed

Lines changed: 15805 additions & 5092 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.

.env.example

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#secure password, can use openssl rand -hex 32
1+
# secure password, can use `openssl rand -hex 32`
22
NUXT_SESSION_PASSWORD=""
33

4-
#HMAC secret for image proxy URL signing, can use openssl rand -hex 32
5-
NUXT_IMAGE_PROXY_SECRET=""
4+
# HMAC secret for image-proxy and OG image URL signing, can use `openssl rand -hex 32`
5+
NUXT_IMAGE_PROXY_SECRET=""

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: "\U0001F41E Bug report"
22
description: Create a report to help us improve npmx
3+
type: bug
4+
labels: ['pending triage']
35
body:
46
- type: markdown
57
attributes:

.github/ISSUE_TEMPLATE/feature-request.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: '🚀 Feature request'
22
description: Suggest a feature that will improve npmx
3+
type: feature
34
labels: ['pending triage']
45
body:
56
- type: markdown

.github/workflows/autofix.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
branches:
1010
- main
1111

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
14+
cancel-in-progress: true
15+
1216
permissions:
1317
contents: read
1418

@@ -19,8 +23,10 @@ jobs:
1923

2024
steps:
2125
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
26+
with:
27+
persist-credentials: false
2228

23-
- uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1
29+
- uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1.6.0
2430
with:
2531
node-version: lts/*
2632
cache: true
@@ -37,4 +43,4 @@ jobs:
3743
- name: 🔠 Fix lint errors
3844
run: vp run lint:fix
3945

40-
- uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27 # 635ffb0c9798bd160680f18fd73371e355b85f27
46+
- uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27 # v1.3.2

.github/workflows/chromatic.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ jobs:
2525
fetch-depth: 0
2626
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
2727
ref: ${{ github.event.pull_request.head.sha || github.sha }}
28+
persist-credentials: false
2829

29-
- uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1
30+
- uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1.6.0
3031
with:
3132
node-version: lts/*
3233
cache: true

.github/workflows/ci.yml

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
branches:
1313
- main
1414

15-
# cancel in-progress runs on new commits to same PR (gitub.event.number)
15+
# cancel in-progress runs on new commits to same PR (github.event.number)
1616
concurrency:
1717
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
1818
cancel-in-progress: true
@@ -27,8 +27,10 @@ jobs:
2727

2828
steps:
2929
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
30+
with:
31+
persist-credentials: false
3032

31-
- uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1
33+
- uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1.6.0
3234
with:
3335
node-version: lts/*
3436
run-install: false
@@ -45,8 +47,10 @@ jobs:
4547

4648
steps:
4749
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
50+
with:
51+
persist-credentials: false
4852

49-
- uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1
53+
- uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1.6.0
5054
with:
5155
node-version: lts/*
5256
cache: true
@@ -60,8 +64,10 @@ jobs:
6064

6165
steps:
6266
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
67+
with:
68+
persist-credentials: false
6369

64-
- uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1
70+
- uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1.6.0
6571
with:
6672
node-version: lts/*
6773
cache: true
@@ -81,8 +87,10 @@ jobs:
8187

8288
steps:
8389
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
90+
with:
91+
persist-credentials: false
8492

85-
- uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1
93+
- uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1.6.0
8694
with:
8795
node-version: lts/*
8896
cache: true
@@ -109,12 +117,17 @@ jobs:
109117
name: 🖥️ Browser tests
110118
runs-on: ubuntu-24.04-arm
111119
container:
112-
image: mcr.microsoft.com/playwright:v1.58.2-noble
120+
image: mcr.microsoft.com/playwright:v1.58.2-noble@sha256:6446946a1d9fd62d9ae501312a2d76a43ee688542b21622056a372959b65d63d
113121

114122
steps:
115123
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
124+
with:
125+
persist-credentials: false
116126

117-
- uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1
127+
- name: 👑 Fix Git ownership
128+
run: git config --global --add safe.directory /__w/npmx.dev/npmx.dev
129+
130+
- uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1.6.0
118131
with:
119132
node-version: lts/*
120133
cache: true
@@ -136,8 +149,10 @@ jobs:
136149

137150
steps:
138151
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
152+
with:
153+
persist-credentials: false
139154

140-
- uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1
155+
- uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1.6.0
141156
with:
142157
node-version: lts/*
143158
cache: true
@@ -157,8 +172,10 @@ jobs:
157172

158173
steps:
159174
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
175+
with:
176+
persist-credentials: false
160177

161-
- uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1
178+
- uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1.6.0
162179
with:
163180
node-version: lts/*
164181
cache: true
@@ -172,8 +189,10 @@ jobs:
172189

173190
steps:
174191
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
192+
with:
193+
persist-credentials: false
175194

176-
- uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1
195+
- uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1.6.0
177196
with:
178197
node-version: lts/*
179198
run-install: false

.github/workflows/dependency-diff-comment.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,20 @@ on:
66
types:
77
- completed
88

9-
permissions:
10-
pull-requests: write
11-
actions: read
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.event.workflow_run.id }}
11+
cancel-in-progress: true
12+
13+
permissions: {}
1214

1315
jobs:
1416
dependency-diff-comment:
1517
name: 💬 Dependency diff comment
1618
runs-on: ubuntu-slim
1719
if: github.event.workflow_run.conclusion == 'success'
20+
permissions:
21+
pull-requests: write # post dependency diff comments on pull requests
22+
actions: read # download artifacts from dependency-diff runs
1823

1924
steps:
2025
- name: 📥 Download artifact

.github/workflows/dependency-diff.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,16 @@ jobs:
2828
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2929
with:
3030
fetch-depth: 0
31+
persist-credentials: false
3132

3233
- name: 🔎 Compare dependencies
3334
id: analyze
3435
uses: e18e/action-dependency-diff@f825d5b5c5ce0a42dc46c47ec20de24460affcd8 # v1.5.0
3536
with:
3637
mode: artifact
3738
detect-replacements: 'true'
38-
duplicate-threshold: '4'
39+
# Too noisy. Disabling until this can report on duplicate CHANGES in this PR.
40+
duplicate-threshold: '999'
3941
dependency-threshold: '15'
4042
size-threshold: '200000'
4143

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Deploy canary
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
permissions:
8+
contents: read
9+
10+
concurrency:
11+
group: deploy-canary-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
deploy-canary:
16+
if: github.repository == 'npmx-dev/npmx.dev'
17+
name: 🚀 Deploy to canary (main.npmx.dev)
18+
runs-on: ubuntu-24.04-arm
19+
steps:
20+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
21+
with:
22+
persist-credentials: false
23+
24+
- uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1.6.0
25+
with:
26+
node-version: lts/*
27+
run-install: false
28+
29+
- run: vp install -g vercel
30+
- run: vercel deploy --target=canary
31+
env:
32+
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
33+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
34+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}

.github/workflows/lunaria.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ concurrency:
1010
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
1111
cancel-in-progress: true
1212

13-
# Allow this job to clone the repository and comment on the pull request
14-
permissions:
15-
contents: read
16-
pull-requests: write
13+
permissions: {}
1714

1815
jobs:
1916
lunaria-overview:
2017
name: 🌝 Generate Lunaria Overview
2118
runs-on: ubuntu-24.04-arm
19+
permissions:
20+
contents: read
21+
pull-requests: write # post Lunaria overview comments on pull requests
2222

2323
steps:
2424
- name: Checkout
@@ -27,11 +27,12 @@ jobs:
2727
# Necessary for Lunaria to work properly
2828
# Makes the action clone the entire git history
2929
fetch-depth: 0
30+
persist-credentials: false
3031

31-
- uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1
32+
- uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1.6.0
3233
with:
3334
node-version: lts/*
3435
cache: true
3536

3637
- name: Generate Lunaria Overview
37-
uses: lunariajs/action@4911ad0736d1e3b20af4cb70f5079aea2327ed8e # v1-prerelease
38+
uses: lunariajs/action@4911ad0736d1e3b20af4cb70f5079aea2327ed8e # astro-docs

0 commit comments

Comments
 (0)