Skip to content

Commit

Permalink
changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
grod220 committed Apr 16, 2024
1 parent 20b439b commit 1f5a5c8
Show file tree
Hide file tree
Showing 7 changed files with 2,571 additions and 195 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Publish to Npm

on:
workflow_call:
workflow_dispatch:
push:
branches:
- main

jobs:
publish:
name: Publish to npm
runs-on: ubuntu-latest
defaults:
run:
working-directory: npm

steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v3
with:
version: 8

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

# If there are changesets, this action will create a PR on the repo to version packages
# If there are none, it will publish newer-versioned public packages to npm
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: pnpm changeset:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/typescript-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: pnpm format-check

build:
name: Lint and check formatting
name: Build
runs-on: ubuntu-latest
defaults:
run:
Expand Down
8 changes: 8 additions & 0 deletions npm/.changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions npm/.changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
7 changes: 7 additions & 0 deletions npm/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# @penumbra-labs/registry

## 1.0.0

### Major Changes

- Initial publish
10 changes: 7 additions & 3 deletions npm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@penumbra-labs/registry",
"version": "0.1.0",
"version": "1.0.0",
"description": "Chain and asset registry for Penumbra",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand All @@ -9,11 +9,14 @@
"format": "prettier . --write",
"format-check": "prettier --check .",
"lint": "eslint . --max-warnings=0",
"build": "tsup src/index.ts --format cjs,esm --dts"
"build": "tsup src/index.ts --format cjs,esm --dts",
"changeset": "changeset",
"changeset:publish": "changeset publish"
},
"devDependencies": {
"@buf/penumbra-zone_penumbra.bufbuild_es": "1.8.0-20240415223544-c0a709144747.2",
"@eslint/eslintrc": "^3.0.2",
"@changesets/cli": "^2.27.1",
"@eslint/js": "^9.0.0",
"eslint": "^9.0.0",
"prettier": "^3.2.5",
Expand All @@ -22,6 +25,7 @@
"typescript-eslint": "^7.7.0"
},
"files": [
"dist"
"dist",
"CHANGELOG.md"
]
}
Loading

0 comments on commit 1f5a5c8

Please sign in to comment.