Skip to content

Commit 421cf51

Browse files
committed
ci: set up changesets
1 parent 0a300e5 commit 421cf51

6 files changed

Lines changed: 601 additions & 7 deletions

File tree

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/better-chairs-march.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"nuxt-remote-fn": minor
3+
---
4+
5+
Bump `@nuxt/kit` to 3.17.5

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "restricted",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.github/workflows/release.yml

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,42 @@ name: Release
22

33
on:
44
push:
5-
tags:
6-
- 'v*'
5+
branches:
6+
- main
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
79

810
jobs:
911
release:
12+
permissions:
13+
contents: write # to create release (changesets/action)
14+
pull-requests: write # to create pull request (changesets/action)
15+
name: Release
1016
runs-on: ubuntu-latest
1117
steps:
12-
- uses: actions/checkout@v3
18+
- name: Checkout Repo
19+
uses: actions/checkout@v4
1320
with:
21+
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
1422
fetch-depth: 0
23+
- uses: pnpm/action-setup@v4
24+
with:
25+
version: 10.5.2
1526

16-
- uses: actions/setup-node@v3
27+
- name: Setup Node.js
28+
uses: actions/setup-node@v4
1729
with:
18-
node-version: 16.x
30+
node-version: 20.x
31+
cache: pnpm
1932

20-
- run: npx changelogithub
33+
- name: Install dependencies
34+
run: pnpm install --frozen-lockfile
35+
36+
- name: Create Release Pull Request or Publish to npm
37+
id: changesets
38+
uses: changesets/action@v1
39+
with:
40+
publish: pnpm release
2141
env:
22-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
"pathe": "^2.0.3"
5454
},
5555
"devDependencies": {
56+
"@changesets/cli": "^2.29.4",
5657
"@nuxt/devtools": "^2.5.0",
5758
"@nuxt/eslint-config": "^1.4.1",
5859
"@nuxt/module-builder": "^1.0.1",

0 commit comments

Comments
 (0)