File tree Expand file tree Collapse file tree 2 files changed +14
-10
lines changed Expand file tree Collapse file tree 2 files changed +14
-10
lines changed Original file line number Diff line number Diff line change 1
- name : Validate and Deploy
2
- " on " :
1
+ name : " Validate and Deploy"
2
+ on :
3
3
push :
4
4
branches :
5
5
- main
6
6
jobs :
7
- build_and_deploy :
7
+ " Validate and Deploy " :
8
8
runs-on : ubuntu-latest
9
9
steps :
10
10
- uses : actions/checkout@v3
11
+ - name : Checkout 🛎️
12
+ run : npm ci
13
+
11
14
- name : Verify Code 👌
12
15
run : |
13
- run: npm ci
14
16
npm run lint
15
17
npm run prettier:check
16
18
20
22
npm run npm-build-package
21
23
22
24
# https://docs.npmjs.com/about-packages-and-modules
25
+ - uses : actions/setup-node@v3
23
26
- name : Deploy Package to `npmjs` 🚀
24
- uses : actions/setup-node@v3
25
27
with :
26
28
registry-url : " https://registry.npmjs.org"
27
29
run : npm publish --access public --folder dist/npm
30
32
31
33
# https://docs.github.com/en/packages
32
34
# https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
35
+ - uses : actions/setup-node@v3
33
36
- name : Deploy Package to `gpr` 🚀
34
- uses : actions/setup-node@v3
35
37
with :
36
38
registry-url : " https://npm.pkg.github.com"
37
39
run : npm publish --access public --folder dist/npm
Original file line number Diff line number Diff line change 1
- name : Verify Pull Request
2
- " on " : pull_request
1
+ name : " Verify Pull Request"
2
+ on : pull_request
3
3
jobs :
4
- build :
4
+ " Verify Pull Request " :
5
5
runs-on : ubuntu-latest
6
6
steps :
7
7
- uses : actions/checkout@v3
8
+ - name : Checkout 🛎️
9
+ run : npm ci
10
+
8
11
- name : Verify Code 👌
9
12
run : |
10
- run: npm ci
11
13
npm run lint
12
14
npm run prettier:check
13
15
You can’t perform that action at this time.
0 commit comments