Skip to content

Commit a18c77a

Browse files
committed
🔧 add publish workflow and npmignore file; update repository URLs in package.json
1 parent 51ea16b commit a18c77a

File tree

3 files changed

+86
-3
lines changed

3 files changed

+86
-3
lines changed

.github/workflows/publish.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Publish to npm
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- name: Setup Node.js
14+
uses: actions/setup-node@v4
15+
with:
16+
node-version: '18.x'
17+
registry-url: 'https://registry.npmjs.org'
18+
19+
- name: Install dependencies
20+
run: npm install
21+
22+
- name: Run checks
23+
run: |
24+
npm run typecheck
25+
npm run lint
26+
npm run format:check
27+
28+
- name: Build
29+
run: npm run build
30+
31+
- name: Publish
32+
run: npm publish --access public
33+
env:
34+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.npmignore

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Source and config files
2+
src/
3+
*.ts
4+
!*.d.ts
5+
tsconfig.json
6+
.eslintrc.json
7+
.eslintignore
8+
.prettierrc.json
9+
.prettierignore
10+
11+
# Development
12+
node_modules/
13+
example.ts
14+
*.log
15+
16+
# Tests
17+
test/
18+
tests/
19+
*.test.ts
20+
*.spec.ts
21+
coverage/
22+
23+
# CI/CD
24+
.github/
25+
26+
# Documentation source (keep only essential docs)
27+
SETUP_COMPLETE.md
28+
PUBLISHING.md
29+
CONTRIBUTING.md
30+
ARCHITECTURE.md
31+
PROJECT_SUMMARY.md
32+
QUICKSTART.md
33+
INSTALL.md
34+
35+
# Git
36+
.git/
37+
.gitignore
38+
.gitattributes
39+
40+
# IDE
41+
.vscode/
42+
.idea/
43+
*.swp
44+
*.swo
45+
*~
46+
47+
# OS
48+
.DS_Store
49+
Thumbs.db

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@
2727
"license": "MIT",
2828
"repository": {
2929
"type": "git",
30-
"url": "https://github.com/yourusername/slskd-client.git"
30+
"url": "https://github.com/gwenoleR/slskd-client.git"
3131
},
3232
"bugs": {
33-
"url": "https://github.com/yourusername/slskd-client/issues"
33+
"url": "https://github.com/gwenoleR/slskd-client/issues"
3434
},
35-
"homepage": "https://github.com/yourusername/slskd-client#readme",
35+
"homepage": "https://github.com/gwenoleR/slskd-client#readme",
3636
"dependencies": {},
3737
"devDependencies": {
3838
"@types/node": "^20.10.5",

0 commit comments

Comments
 (0)