Skip to content

Commit 3ddba32

Browse files
committed
add github workflow
1 parent 990b0ea commit 3ddba32

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

.github/workflows/publish.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: 'publish'
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
release:
9+
name: 🚀 publish
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: 📚 checkout
13+
uses: actions/checkout@v3
14+
- name: 🟢 node
15+
uses: actions/setup-node@v2
16+
with:
17+
node-version: 16
18+
registry-url: https://registry.npmjs.org
19+
- name: 🍳 prepare
20+
run: |
21+
npm install
22+
npm run build
23+
- name: 🚚 publish
24+
run: npm publish
25+
env:
26+
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"dependencies": {},
2121
"devDependencies": {
2222
"discord.js": "^14.12.1",
23-
"tsc": "^2.0.4",
2423
"typescript": "^5.1.6"
2524
}
2625
}

0 commit comments

Comments
 (0)