Skip to content

Commit c0548f9

Browse files
Updated actions
1 parent 880ff89 commit c0548f9

File tree

4 files changed

+26
-40
lines changed

4 files changed

+26
-40
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Publish To NPM
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
release:
8+
name: Release
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
- name: Setup Node
14+
uses: actions/setup-node@v1
15+
with:
16+
node-version: 12
17+
registry-url: https://registry.npmjs.org
18+
- name: Install Dependencies
19+
run: npm install
20+
- name: Compile Source
21+
run: npm run compile
22+
- name: Publish Package
23+
run: npm publish
24+
env:
25+
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@
4444
},
4545
"scripts": {
4646
"start": "tsc --watch",
47-
"test": "tsc -d && echo 'Please use the test environment'",
48-
"prepublish": "tsc",
47+
"test": "echo 'Please use the test environment'",
4948
"compile": "tsc",
5049
"package": "npm pack"
5150
},

scripts/gpr-post-publish.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)