Skip to content

Commit

Permalink
chore: release @nuxt/image-nightly with changelogen
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Mar 5, 2024
1 parent 369b747 commit 074d12e
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 157 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,28 +50,3 @@ jobs:
- run: pnpm test:types
- run: pnpm dev:build
- uses: codecov/codecov-action@v4

release:
runs-on: ubuntu-latest
needs: ci
if: github.event_name == 'push' && !contains(github.event.head_commit.message, '[skip-release]')
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- run: pnpm install
- run: pnpm dev:prepare
- run: pnpm build
- name: Release Edge
if: |
github.event_name == 'push' &&
!contains(github.event.head_commit.message, '[skip-release]')
run: ./scripts/release-edge.sh
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
NPM_CONFIG_PROVENANCE: true
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: release

on:
push:
branches:
- main

permissions: {}

jobs:
release:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'nuxt' && github.event_name == 'push' }}
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- run: corepack enable
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 20
registry-url: "https://registry.npmjs.org/"
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Prepare build environment
run: pnpm dev:prepare

- name: nightly release
run: pnpm changelogen --canary nightly --publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
NPM_CONFIG_PROVENANCE: true
6 changes: 3 additions & 3 deletions docs/content/1.get-started/1.installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Checkout the [image configuration](/get-started/configuration) for all available

## Edge Channel

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.
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.

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

Expand All @@ -66,7 +66,7 @@ Update `@nuxt/image` dependency inside `package.json`:
{
"devDependencies": {
- "@nuxt/image": "^1.0.0"
+ "@nuxt/image": "npm:@nuxt/image-edge@latest"
+ "@nuxt/image": "npm:@nuxt/image-nightly@latest"
}
}
```
Expand All @@ -80,7 +80,7 @@ Update `@nuxt/image` dependency inside `package.json`:
```diff [package.json]
{
"devDependencies": {
- "@nuxt/image": "npm:@nuxt/image-edge@latest"
- "@nuxt/image": "npm:@nuxt/image-nightly@latest"
+ "@nuxt/image": "^1.0.0"
}
}
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
"packageManager": "pnpm@8.15.4",
"resolutions": {
"@nuxt/schema": "3.10.3",
"@nuxt/image-edge": "link:.",
"@nuxt/image": "link:."
},
"engines": {
Expand Down
1 change: 0 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

107 changes: 0 additions & 107 deletions scripts/bump-edge.mjs

This file was deleted.

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

This file was deleted.

0 comments on commit 074d12e

Please sign in to comment.