Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 074d12e

Browse files
committed
chore: release @nuxt/image-nightly with changelogen
1 parent 369b747 commit 074d12e

File tree

7 files changed

+39
-157
lines changed

7 files changed

+39
-157
lines changed

.github/workflows/ci.yml

-25
Original file line numberDiff line numberDiff line change
@@ -50,28 +50,3 @@ jobs:
5050
- run: pnpm test:types
5151
- run: pnpm dev:build
5252
- uses: codecov/codecov-action@v4
53-
54-
release:
55-
runs-on: ubuntu-latest
56-
needs: ci
57-
if: github.event_name == 'push' && !contains(github.event.head_commit.message, '[skip-release]')
58-
permissions:
59-
id-token: write
60-
steps:
61-
- uses: actions/checkout@v4
62-
- run: corepack enable
63-
- uses: actions/setup-node@v4
64-
with:
65-
node-version: 20
66-
cache: "pnpm"
67-
- run: pnpm install
68-
- run: pnpm dev:prepare
69-
- run: pnpm build
70-
- name: Release Edge
71-
if: |
72-
github.event_name == 'push' &&
73-
!contains(github.event.head_commit.message, '[skip-release]')
74-
run: ./scripts/release-edge.sh
75-
env:
76-
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
77-
NPM_CONFIG_PROVENANCE: true

.github/workflows/release.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions: {}
9+
10+
jobs:
11+
release:
12+
runs-on: ubuntu-latest
13+
if: ${{ github.repository_owner == 'nuxt' && github.event_name == 'push' }}
14+
permissions:
15+
id-token: write
16+
contents: read
17+
steps:
18+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
19+
- run: corepack enable
20+
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
21+
with:
22+
node-version: 20
23+
registry-url: "https://registry.npmjs.org/"
24+
cache: "pnpm"
25+
26+
- name: Install dependencies
27+
run: pnpm install
28+
29+
- name: Prepare build environment
30+
run: pnpm dev:prepare
31+
32+
- name: nightly release
33+
run: pnpm changelogen --canary nightly --publish
34+
env:
35+
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
36+
NPM_CONFIG_PROVENANCE: true

docs/content/1.get-started/1.installation.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Checkout the [image configuration](/get-started/configuration) for all available
5252

5353
## Edge Channel
5454

55-
After each commit is merged into the `main` branch of `@nuxt/image` and **passing all tests**, we trigger an automated npm release using Github Actions publishing a [`@nuxt/image-edge`](https://npmjs.com/package/@nuxt/image-edge) package.
55+
After each commit is merged into the `main` branch of `@nuxt/image` and **passing all tests**, we trigger an automated npm release using Github Actions publishing a [`@nuxt/image-nightly`](https://npmjs.com/package/@nuxt/image-nightly) package.
5656

5757
You can opt in to use this release channel and avoid waiting for the next release and helping the module by beta testing changes.
5858

@@ -66,7 +66,7 @@ Update `@nuxt/image` dependency inside `package.json`:
6666
{
6767
"devDependencies": {
6868
- "@nuxt/image": "^1.0.0"
69-
+ "@nuxt/image": "npm:@nuxt/image-edge@latest"
69+
+ "@nuxt/image": "npm:@nuxt/image-nightly@latest"
7070
}
7171
}
7272
```
@@ -80,7 +80,7 @@ Update `@nuxt/image` dependency inside `package.json`:
8080
```diff [package.json]
8181
{
8282
"devDependencies": {
83-
- "@nuxt/image": "npm:@nuxt/image-edge@latest"
83+
- "@nuxt/image": "npm:@nuxt/image-nightly@latest"
8484
+ "@nuxt/image": "^1.0.0"
8585
}
8686
}

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@
6868
"packageManager": "[email protected]",
6969
"resolutions": {
7070
"@nuxt/schema": "3.10.3",
71-
"@nuxt/image-edge": "link:.",
7271
"@nuxt/image": "link:."
7372
},
7473
"engines": {

pnpm-lock.yaml

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/bump-edge.mjs

-107
This file was deleted.

scripts/release-edge.sh

-20
This file was deleted.

0 commit comments

Comments
 (0)