Skip to content

Commit 8228cfa

Browse files
Create main.yml
1 parent 6499b50 commit 8228cfa

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/main.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build and test angular-cli-ghpages
2+
3+
on: [push]
4+
5+
jobs:
6+
build-and-deploy:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v2
12+
13+
- name: Use Node.js 10.x
14+
uses: actions/setup-node@v1
15+
with:
16+
node-version: 10.x
17+
18+
- name: Prepare and deploy
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
run: |
22+
cd src
23+
npm run build
24+
npm run test
25+
cd dist
26+
sudo npm link

0 commit comments

Comments
 (0)