Skip to content

Commit 2d4fe44

Browse files
committed
Refactoring GitHub actions
1 parent f7a5ea2 commit 2d4fe44

File tree

3 files changed

+30
-34
lines changed

3 files changed

+30
-34
lines changed

.github/workflows/node.js.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
name: Node.js CI
1+
name: CI
22

33
on:
44
workflow_dispatch:
55
push:
6-
branches: [ "main" ]
6+
branches: ["main"]
77
pull_request:
8-
branches: [ "main" ]
8+
branches: ["main"]
99

1010
jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- name: Checkout code
16-
uses: actions/checkout@v3
15+
- name: Checkout code
16+
uses: actions/checkout@v3
1717

18-
- name: Setup Node.js 16
19-
uses: actions/setup-node@v3
20-
with:
21-
node-version: 16
22-
cache: 'npm'
18+
- name: Setup Node.js 16
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: 16
22+
cache: "npm"
2323

24-
- name: Install dependencies
25-
run: npm ci
24+
- name: Install dependencies
25+
run: npm ci
2626

27-
- name: Run linters
28-
run: npm run lint
27+
- name: Run linters
28+
run: npm run lint
2929

30-
- name: Build project
31-
run: npm run build
30+
- name: Build project
31+
run: npm run build

.github/workflows/npm-publish.yml

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,19 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- name: Checkout code
14-
uses: actions/checkout@v3
13+
- name: Checkout code
14+
uses: actions/checkout@v3
1515

16-
- name: Setup Node.js 16
17-
uses: actions/setup-node@v3
18-
with:
19-
node-version: '16.x'
20-
cache: 'npm'
21-
registry-url: 'https://registry.npmjs.org/'
16+
- name: Setup Node.js 16
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: "16.x"
20+
registry-url: "https://registry.npmjs.org"
2221

23-
- name: Install dependencies
24-
run: npm ci
22+
- name: Install dependencies
23+
run: npm ci
2524

26-
- name: Build
27-
run: npm run build
28-
29-
- name: Publish Packages
30-
run: npm publish --access public
31-
env:
32-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
25+
- name: Publish Packages
26+
run: npm publish --access public
27+
env:
28+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@brooklyn-labs/postgraphile-plugin-remove-foreign-key-fields",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"description": "PostGraphile plugin that removes all foreign key fields from the GraphQL schema while still allowing foreign relationships to be created. Primary key fields are not removed from the GraphQL schema.",
55
"author": "Brooklyn Labs",
66
"license": "MIT",

0 commit comments

Comments
 (0)