-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (36 loc) · 970 Bytes
/
Deploy.yml
File metadata and controls
40 lines (36 loc) · 970 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Deploy
on:
release:
types: published
jobs:
Deploy-To-NPM:
runs-on: ubuntu-latest
name: Deploy to NPM
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1.2.0
with:
node-version: '12'
registry-url: 'https://registry.npmjs.org'
- run: node --version
- run: npm ci
- run: npm run lint
- run: ls && npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Deploy-To-GitHub-Package-Registry:
runs-on: ubuntu-latest
name: Deploy to GPR
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1.2.0
with:
node-version: '12'
registry-url: 'https://npm.pkg.github.com'
- run: node --version
- run: npm ci
- run: npm run lint
- run: npm run rescope vajahath
- run: ls && npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GH_TOKEN }}