Skip to content

Commit

Permalink
chore: add publish CI
Browse files Browse the repository at this point in the history
  • Loading branch information
marquesVF committed Apr 29, 2021
1 parent 979a898 commit 9dc1a7b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Publish

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"dev": "ttsc --project tsconfig.lib.json --watch",
"clean": "rm -rf dist",
"fix": "yarn lint:prettier --write && yarn lint --fix",
"prepare": "yarn clean && yarn test && yarn build",
"lint": "eslint --ext .ts --cache lib",
"lint:prettier": "prettier \"**/*.{js,ts,json,md,yml}\"",
"test": "jest",
Expand Down

0 comments on commit 9dc1a7b

Please sign in to comment.