-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (60 loc) · 2.04 KB
/
ci.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: CI
on:
pull_request:
jobs:
pkg_deployment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setting up the environment
run: npm install && npm run pkg-build && sudo npm link
- name: Deploying version
run: sudo deploy-pkg package-deployer --npm-access-token=${{secrets.NPM_AUTH_TOKEN}} --github-access-token=${{secrets.G_AUTH_TOKEN}} --github-owner=danitseitlin --github-repo=package-deployer --dry-run --publish-pretty-output --debug
action_deployment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setting up the environment
run: npm install
- name: Deploying version
uses: ./
with:
pkg_name: package-deployer
pkg_managers: '[github, npm]'
npm_registry: registry.npmjs.org
npm_access_token: ${{secrets.NPM_AUTH_TOKEN}}
github_access_token: ${{secrets.G_AUTH_TOKEN}}
dry_run: true
debug: true
- name: Deploying version for non existing pkg
uses: ./
with:
pkg_name: package-deployer-non
pkg_managers: '[github, npm]'
npm_registry: registry.npmjs.org
npm_access_token: ${{secrets.NPM_AUTH_TOKEN}}
github_access_token: ${{secrets.G_AUTH_TOKEN}}
dry_run: true
debug: true
- name: Deploying version with main pkg manager NPM
uses: ./
with:
pkg_name: package-deployer
main_pkg_manager: npm
pkg_managers: '[github, npm]'
npm_registry: registry.npmjs.org
npm_access_token: ${{secrets.NPM_AUTH_TOKEN}}
github_access_token: ${{secrets.G_AUTH_TOKEN}}
dry_run: true
debug: true
- name: Deploying version with main pkg manager GitHub
uses: ./
with:
pkg_name: package-deployer
main_pkg_manager: github
pkg_managers: '[github, npm]'
npm_registry: registry.npmjs.org
npm_access_token: ${{secrets.NPM_AUTH_TOKEN}}
github_access_token: ${{secrets.G_AUTH_TOKEN}}
dry_run: true
debug: true