Skip to content
This repository has been archived by the owner on Sep 5, 2021. It is now read-only.

Commit

Permalink
create github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterOdin committed Apr 16, 2020
1 parent b2d9a38 commit 0af902f
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 1 deletion.
File renamed without changes.
21 changes: 21 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

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 ci
- run: npm run tsc-publish-dry
- run: cd dist && npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
50 changes: 50 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
"test": "jest --verbose",
"lint": "eslint src/**/*.ts test/**/*.ts",
"lint:fix": "eslint --fix src/**/*.ts test/**/*.ts",
"build": "tsc"
"build": "tsc",
"watch": "tsc --watch",
"tsc-publish": "tsc-publish",
"tsc-publish-dry": "tsc-publish --dry-run",
"prepublishOnly": "echo \"Do not run publish directly, run tsc-publish\" && exit 1"
},
"repository": {
"type": "git",
Expand All @@ -30,6 +34,7 @@
"eslint": "^6.8.0",
"jest": "^25.3.0",
"ts-jest": "^25.3.1",
"tsc-publish": "^0.5.2",
"typescript": "^3.8.3"
}
}

0 comments on commit 0af902f

Please sign in to comment.