Skip to content

Commit ee181fb

Browse files
committed
Set up changesets
1 parent 12ef21d commit ee181fb

6 files changed

Lines changed: 80 additions & 0 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/config.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
3+
"changelog": [
4+
"@changesets/changelog-github",
5+
{ "repo": "networked-art/cryptopunks" }
6+
],
7+
"commit": false,
8+
"fixed": [],
9+
"linked": [],
10+
"access": "public",
11+
"baseBranch": "master",
12+
"updateInternalDependencies": "patch",
13+
"ignore": ["@networked-art/punks-contracts"]
14+
}

.github/workflows/release.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- '.changeset/**'
9+
- 'sdk/package.json'
10+
- 'sdk/CHANGELOG.md'
11+
12+
concurrency: ${{ github.workflow }}-${{ github.ref }}
13+
14+
jobs:
15+
release:
16+
name: Release
17+
runs-on: ubuntu-latest
18+
permissions:
19+
contents: write
20+
pull-requests: write
21+
id-token: write
22+
env:
23+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
28+
- name: Setup pnpm
29+
uses: pnpm/action-setup@v4
30+
31+
- name: Setup Node.js
32+
uses: actions/setup-node@v4
33+
with:
34+
node-version: 24
35+
cache: pnpm
36+
registry-url: 'https://registry.npmjs.org'
37+
38+
- name: Install dependencies
39+
run: pnpm install --frozen-lockfile
40+
41+
- name: Build SDK
42+
run: pnpm --filter @networked-art/punks-sdk build
43+
44+
- name: Create release PR or publish
45+
uses: changesets/action@v1
46+
with:
47+
publish: pnpm changeset publish
48+
title: 'Version Packages'
49+
commit: 'Version Packages'
50+
env:
51+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
24

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
//registry.npmjs.org/:_authToken=${NPM_TOKEN}

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,19 @@
33
"private": true,
44
"packageManager": "pnpm@10.32.1",
55
"scripts": {
6+
"build": "pnpm -r --if-present build",
67
"test": "pnpm --filter @networked-art/punks-contracts test && pnpm --filter @networked-art/punks-sdk test",
78
"typecheck": "pnpm -r typecheck",
89
"format": "prettier --write .",
910
"format:check": "prettier --check .",
11+
"changeset": "changeset",
1012
"docs:dev": "pnpm --filter @cryptopunks/docs dev",
1113
"docs:build": "pnpm --filter @cryptopunks/docs build",
1214
"docs:preview": "pnpm --filter @cryptopunks/docs preview"
1315
},
1416
"devDependencies": {
17+
"@changesets/changelog-github": "^0.6.0",
18+
"@changesets/cli": "^2.30.0",
1519
"prettier": "^3.8.1"
1620
},
1721
"pnpm": {

0 commit comments

Comments
 (0)