Skip to content

Commit 5929e0d

Browse files
committed
add github actions
1 parent 6ae1f0b commit 5929e0d

File tree

7 files changed

+107
-1
lines changed

7 files changed

+107
-1
lines changed

.changeset/README.md

+8
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

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

.changeset/kind-chicken-glow.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@validators-dao/sol-swap': patch
3+
---
4+
5+
First Deploy
+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: SolSwapRelease
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- 'packages/sol-swap/**'
8+
- '.github/workflows/sol-swap-release.yml'
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
node-version: [20]
16+
17+
steps:
18+
- name: checkout code repository
19+
uses: actions/checkout@v3
20+
- uses: pnpm/action-setup@v3
21+
with:
22+
version: 9
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v3
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
cache: 'pnpm'
28+
29+
- name: Install dependencies
30+
run: pnpm install
31+
32+
- name: Build and Add Line
33+
run: npx turbo -F @validators-dao/sol-swap build
34+
35+
- name: Creating .npmrc
36+
run: |
37+
cat << EOF > "$HOME/.npmrc"
38+
//registry.npmjs.org/:_authToken=$NPM_TOKEN
39+
EOF
40+
env:
41+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
42+
43+
- name: create and publish versions
44+
id: changesets
45+
uses: changesets/action@v1
46+
with:
47+
version: pnpm ci:version
48+
publish: pnpm ci:publish
49+
title: 'SolSwap Release'
50+
commit: 'SolSwap Release'
51+
createGithubReleases: true
52+
53+
env:
54+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
"description": "",
55
"main": "index.js",
66
"scripts": {
7+
"ci:version": "changeset version",
8+
"ci:publish": "changeset publish",
79
"test": "echo \"Error: no test specified\" && exit 1",
810
"build": "turbo build"
911
},
@@ -23,6 +25,7 @@
2325
"@types/node": "22.7.4",
2426
"@typescript-eslint/eslint-plugin": "8.8.0",
2527
"@typescript-eslint/parser": "8.8.0",
28+
"changeset": "^0.2.6",
2629
"eslint": "9.12.0",
2730
"eslint-config-prettier": "9.1.0",
2831
"husky": "9.1.6",

packages/sol-swap/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@validatorsdao/sol-swap",
2+
"name": "@validators-dao/sol-swap",
33
"version": "0.1.0",
44
"description": "Solana Validator CLI SOLV",
55
"main": "dist/index.js",

pnpm-lock.yaml

+21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)