Skip to content

Commit 216fcfb

Browse files
committed
release settings & initial release
1 parent e8d54a3 commit 216fcfb

File tree

6 files changed

+115
-1
lines changed

6 files changed

+115
-1
lines changed

.changeset/beige-nails-watch.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@peeramid-labs/eds": minor
3+
---
4+
5+
initial release

.changeset/config.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": [
4+
"@changesets/changelog-github",
5+
{
6+
"repo": "@peeramid-labs/eds"
7+
}
8+
],
9+
"commit": false,
10+
"fixed": [],
11+
"linked": [],
12+
"access": "public",
13+
"baseBranch": "main",
14+
"updateInternalDependencies": "patch",
15+
"ignore": []
16+
}

.github/setup/action.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: setup
2+
runs:
3+
using: 'composite'
4+
steps:
5+
- uses: actions/checkout@v3
6+
with:
7+
fetch-depth: 0
8+
- name: Install pnpm
9+
uses: pnpm/action-setup@v4
10+
with:
11+
version: 9
12+
run_install: false
13+
- name: Setup Node.js
14+
uses: actions/setup-node@v3
15+
with:
16+
node-version: 18.17.1
17+
cache: 'pnpm'
18+
- name: Get pnpm store directory
19+
shell: bash
20+
run: |
21+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
22+
- uses: actions/cache@v3
23+
name: Setup pnpm cache
24+
with:
25+
path: ${{ env.STORE_PATH }}
26+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
27+
restore-keys: |
28+
${{ runner.os }}-pnpm-store-
29+
- name: Installing dependencies
30+
run: pnpm install --frozen-lockfile
31+
shell: bash

.github/workflows/main.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
branches: [main,staging]
5+
types: [opened, reopened, labeled, synchronize]
6+
jobs:
7+
lint:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
- uses: './.github/setup'
12+
- name: Building
13+
run: pnpm build
14+
- name: Linting
15+
run: pnpm lint
16+
17+
test:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v3
21+
- uses: './.github/setup'
22+
23+
- name: Running tests
24+
run: pnpm test:parallel

.github/workflows/release.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
permissions: {}
11+
jobs:
12+
release:
13+
permissions:
14+
contents: write # to create release (changesets/action)
15+
issues: write # to post issue comments (changesets/action)
16+
pull-requests: write # to create pull request (changesets/action)
17+
timeout-minutes: 20
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v3
21+
- uses: actions/setup-node@v3
22+
- uses: './.github/setup'
23+
with:
24+
node-version: 18.x
25+
- name: install dependencies
26+
run: pnpm install
27+
- name: generate docs
28+
run: pnpm hardhat docgen
29+
- name: Create Release Pull Request or Publish to npm
30+
uses: changesets/action@v1
31+
with:
32+
publish: pnpm run release
33+
version: pnpm run version
34+
commit: 'chore: new release'
35+
title: 'chore: new release candidate'
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "eds",
2+
"name": "@peeramid-labs/eds",
33
"version": "0.1",
44
"files": [
55
"abi",

0 commit comments

Comments
 (0)