Skip to content

Commit

Permalink
ci: setting up cd pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
aorumbayev committed Jan 8, 2025
1 parent 52ac67d commit e866b25
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 96 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Publish

on:
push:
branches:
- main
- release
workflow_dispatch:

concurrency: release

permissions:
contents: write
issues: read

jobs:
ci:
name: Continuous Integration
uses: ./.github/workflows/ci.yaml

release:
name: Release
needs: ci
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x

- name: Install dependencies and build
run: npm ci && npm run build

- name: 'Semantic release'
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
67 changes: 0 additions & 67 deletions .github/workflows/cd.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/ci.yml → .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Run Tests
on:
push:
branches:
branches-ignore:
- main
pull_request:
workflow_call:
Expand Down
10 changes: 5 additions & 5 deletions package-lock.json

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

41 changes: 19 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,56 +1,57 @@
{
"name": "avm-debug-adapter",
"version": "0.3.0",
"name": "algokit-avm-debugger",
"version": "0.1.0",
"description": "Algorand AVM transaction and smart contract debugger using the Debugger Adapter Protocol",
"author": {
"name": "Algorand, llc"
"name": "Algorand Foundation"
},
"license": "MIT",
"engines": {
"node": ">=18.0.0"
},
"repository": {
"type": "git",
"url": "https://github.com/algorand/avm-debugger.git"
"url": "https://github.com/algorandfoundation/algokit-avm-debugger.git"
},
"bugs": {
"url": "https://github.com/algorand/avm-debugger/issues"
"url": "https://github.com/algorandfoundation/algokit-avm-debugger/issues"
},
"main": "out/src/common/index.js",
"types": "out/src/common/index.d.ts",
"main": "dist/src/common/index.js",
"types": "dist/src/common/index.d.ts",
"typesVersions": {
"*": {
".": [
"out/src/common/index.d.ts"
"dist/src/common/index.d.ts"
],
"*": [
"out/src/common/index.d.ts"
"dist/src/common/index.d.ts"
],
"node": [
"out/src/node/index.d.ts"
"dist/src/node/index.d.ts"
]
}
},
"exports": {
".": {
"types": "./out/src/common/index.d.ts",
"default": "./out/src/common/index.js"
"types": "./dist/src/common/index.d.ts",
"default": "./dist/src/common/index.js"
},
"./node": {
"types": "./out/src/node/index.d.ts",
"default": "./out/src/node/index.js"
"types": "./dist/src/node/index.d.ts",
"default": "./dist/src/node/index.js"
}
},
"bin": {
"avm-debug-adapter": "./out/src/cli.js"
"algokit-avm-debugger": "./dist/src/cli.js"
},
"files": [
"out/src",
"dist/src",
"src"
],
"scripts": {
"prepare": "npm run compile",
"compile": "shx rm -rf out && tsc -p ./",
"compile": "shx rm -rf dist && tsc -p ./",
"build": "npm run compile && npm pack",
"lint": "eslint src --ext ts",
"typecheck": "tsc -p tsconfig.json --noEmit",
"check-format": "prettier . --check",
Expand Down Expand Up @@ -100,11 +101,7 @@
"release": {
"branches": [
{
"name": "main",
"prerelease": "beta"
},
{
"name": "release"
"name": "main"
}
],
"plugins": [
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"module": "commonjs",
"target": "ES2020",
"outDir": "out",
"outDir": "dist",
"lib": ["WebWorker", "ES2020"],
"sourceMap": true,
"declaration": true,
Expand Down

0 comments on commit e866b25

Please sign in to comment.