Skip to content

Commit 73635b4

Browse files
committed
Update github actions
1 parent 47217bb commit 73635b4

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

.github/workflows/on-merge-main.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
name: Validate and Deploy
2-
"on":
1+
name: "Validate and Deploy"
2+
on:
33
push:
44
branches:
55
- main
66
jobs:
7-
build_and_deploy:
7+
"Validate and Deploy":
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v3
11+
- name: Checkout 🛎️
12+
run: npm ci
13+
1114
- name: Verify Code 👌
1215
run: |
13-
run: npm ci
1416
npm run lint
1517
npm run prettier:check
1618
@@ -20,8 +22,8 @@ jobs:
2022
npm run npm-build-package
2123
2224
# https://docs.npmjs.com/about-packages-and-modules
25+
- uses: actions/setup-node@v3
2326
- name: Deploy Package to `npmjs` 🚀
24-
uses: actions/setup-node@v3
2527
with:
2628
registry-url: "https://registry.npmjs.org"
2729
run: npm publish --access public --folder dist/npm
@@ -30,8 +32,8 @@ jobs:
3032

3133
# https://docs.github.com/en/packages
3234
# https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
35+
- uses: actions/setup-node@v3
3336
- name: Deploy Package to `gpr` 🚀
34-
uses: actions/setup-node@v3
3537
with:
3638
registry-url: "https://npm.pkg.github.com"
3739
run: npm publish --access public --folder dist/npm

.github/workflows/verify-pull-request.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
name: Verify Pull Request
2-
"on": pull_request
1+
name: "Verify Pull Request"
2+
on: pull_request
33
jobs:
4-
build:
4+
"Verify Pull Request":
55
runs-on: ubuntu-latest
66
steps:
77
- uses: actions/checkout@v3
8+
- name: Checkout 🛎️
9+
run: npm ci
10+
811
- name: Verify Code 👌
912
run: |
10-
run: npm ci
1113
npm run lint
1214
npm run prettier:check
1315

0 commit comments

Comments
 (0)