Skip to content

Commit

Permalink
add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
POPPIN-FUMI committed Oct 7, 2024
1 parent 6ae1f0b commit 5929e0d
Show file tree
Hide file tree
Showing 7 changed files with 107 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .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)
14 changes: 14 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": [
"@changesets/changelog-github",
{ "repo": "ValidatorsDAO/sol-swap" }
],
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
5 changes: 5 additions & 0 deletions .changeset/kind-chicken-glow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@validators-dao/sol-swap': patch
---

First Deploy
55 changes: 55 additions & 0 deletions .github/workflows/sol-swap-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: SolSwapRelease

on:
push:
branches: [main]
paths:
- 'packages/sol-swap/**'
- '.github/workflows/sol-swap-release.yml'

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]

steps:
- name: checkout code repository
uses: actions/checkout@v3
- uses: pnpm/action-setup@v3
with:
version: 9
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Build and Add Line
run: npx turbo -F @validators-dao/sol-swap build

- name: Creating .npmrc
run: |
cat << EOF > "$HOME/.npmrc"
//registry.npmjs.org/:_authToken=$NPM_TOKEN
EOF
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: create and publish versions
id: changesets
uses: changesets/action@v1
with:
version: pnpm ci:version
publish: pnpm ci:publish
title: 'SolSwap Release'
commit: 'SolSwap Release'
createGithubReleases: true

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"description": "",
"main": "index.js",
"scripts": {
"ci:version": "changeset version",
"ci:publish": "changeset publish",
"test": "echo \"Error: no test specified\" && exit 1",
"build": "turbo build"
},
Expand All @@ -23,6 +25,7 @@
"@types/node": "22.7.4",
"@typescript-eslint/eslint-plugin": "8.8.0",
"@typescript-eslint/parser": "8.8.0",
"changeset": "^0.2.6",
"eslint": "9.12.0",
"eslint-config-prettier": "9.1.0",
"husky": "9.1.6",
Expand Down
2 changes: 1 addition & 1 deletion packages/sol-swap/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@validatorsdao/sol-swap",
"name": "@validators-dao/sol-swap",
"version": "0.1.0",
"description": "Solana Validator CLI SOLV",
"main": "dist/index.js",
Expand Down
21 changes: 21 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5929e0d

Please sign in to comment.