Skip to content

Commit a949c1e

Browse files
Add initial setup and release flow
1 parent 11ee124 commit a949c1e

File tree

15 files changed

+10578
-1
lines changed

15 files changed

+10578
-1
lines changed

.eslintrc.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"plugins": ["@typescript-eslint"],
5+
"extends": ["plugin:@typescript-eslint/recommended"],
6+
"ignorePatterns": ["lib/*"],
7+
"rules": {
8+
"@typescript-eslint/no-explicit-any": 0,
9+
"@typescript-eslint/no-empty-function": 0,
10+
"storybook/default-exports": 0,
11+
"@typescript-eslint/ban-ts-comment": 1,
12+
"@typescript-eslint/ban-types": 0,
13+
"@typescript-eslint/no-empty-interface": 0,
14+
"@typescript-eslint/no-unused-vars": [
15+
"warn",
16+
{
17+
"vars": "all",
18+
"args": "after-used",
19+
"ignoreRestSiblings": true,
20+
"argsIgnorePattern": "^_",
21+
"varsIgnorePattern": "^_"
22+
}
23+
]
24+
}
25+
}

.github/workflows/release.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- main
8+
9+
permissions:
10+
contents: write
11+
issues: write
12+
pull-requests: write
13+
id-token: write
14+
15+
jobs:
16+
release:
17+
name: Release
18+
runs-on: ubuntu-latest
19+
if: "!contains(github.event.head_commit.message, 'skip ci')"
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 0
26+
persist-credentials: false
27+
28+
- name: Setup Node.js
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version: '18'
32+
cache: 'npm'
33+
34+
- name: Install dependencies
35+
run: npm ci
36+
37+
- name: Build package
38+
run: npm run build
39+
40+
- name: Run tests (if any)
41+
run: npm test || echo "No tests found"
42+
43+
- name: Release
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
47+
run: npx semantic-release

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
lib

.releaserc.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"branches": ["main", "master"],
3+
"plugins": [
4+
"@semantic-release/commit-analyzer",
5+
"@semantic-release/release-notes-generator",
6+
"@semantic-release/changelog",
7+
"@semantic-release/npm",
8+
"@semantic-release/github",
9+
[
10+
"@semantic-release/git",
11+
{
12+
"assets": ["CHANGELOG.md", "package.json", "package-lock.json"],
13+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
14+
}
15+
]
16+
]
17+
}

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
# sdk
1+
# @decodo/sdk
2+
3+
Official Decodo SDK for helping integrate with Decodo services.

0 commit comments

Comments
 (0)