Skip to content

Commit 7b31c03

Browse files
committed
feat: publish workflow
probably should have just used a pre existing one but that's no fun xd
1 parent 11da5e9 commit 7b31c03

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.github/workflows/publish.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: publish
2+
on:
3+
release:
4+
types:
5+
- published
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: ./.github/workflows/tests.yml
13+
- name: build
14+
run: npm run build
15+
- name: publish
16+
env:
17+
NPM_TOKEN: ${{ secrets.WORKFLOW_AUTO_PUBLISH }}
18+
run: npm publish

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"axios": "^1.11.0"
1313
},
1414
"name": "scratchattach.ts",
15-
"version": "1.0.1",
15+
"version": "1.0.2",
1616
"description": "Typescript package for accessing https://scratch.mit.edu/",
1717
"author": "faretek1",
1818
"license": "MIT",

0 commit comments

Comments
 (0)