Skip to content

Commit 46c2796

Browse files
committed
strict-plugin | Adds release github action
1 parent c7847cd commit 46c2796

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

.github/workflows/package.yml

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

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "typescript-strict-plugin",
3-
"version": "1.0.12",
3+
"version": "1.0.0-beta.1",
44
"description": "https://github.com/Microsoft/TypeScript/wiki/Writing-a-Language-Service-Plugin",
55
"main": "dist/index.js",
6-
"private": true,
6+
"private": false,
77
"scripts": {
8-
"test": "echo \"Error: no test specified\" && exit 0",
8+
"test": "npm run e2e",
99
"build": "tsc",
1010
"dev": "tsc --watch -p .",
1111
"e2e": "node e2e/run.js",

0 commit comments

Comments
 (0)