forked from PaladinsDev/paladins.js
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 892 Bytes
/
develop-test.yml
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
41
name: Development Test
on:
push:
branches-ignore:
- main
pull_request:
branches:
- "*"
env:
PALADINS_DEV_ID: ${{ secrets.PALADINS_DEV_ID }}
PALADINS_API_KEY: ${{ secrets.PALADINS_API_KEY }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
jobs:
test:
name: "test 🧪"
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install dependencies
run: npm ci
- name: Build docker image
run: npm run test
deploy-test:
name: "deploy test 🚀"
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Install dependencies
run: npm ci
- name: Publish package to npm
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ env.NPM_TOKEN }}
dry-run: true