Skip to content

Commit c3402b5

Browse files
committed
add publish workflow
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
1 parent dbe5bdf commit c3402b5

File tree

3 files changed

+67
-0
lines changed

3 files changed

+67
-0
lines changed

.github/workflows/publish.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Publish
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v1
12+
- uses: actions/setup-node@v1
13+
with:
14+
node-version: 12
15+
registry-url: https://registry.npmjs.org/
16+
- run: npm ci
17+
- run: npm run build
18+
- run: npm run tsc-publish
19+
env:
20+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

package-lock.json

Lines changed: 46 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"eslint": "^7.7.0",
3434
"jest": "^26.4.0",
3535
"ts-jest": "^26.2.0",
36+
"tsc-publish": "^0.5.2",
3637
"typescript": "^3.9.7"
3738
},
3839
"publishConfig": {

0 commit comments

Comments
 (0)