Skip to content

Commit f644c95

Browse files
committed
ci: fix publish workflow
1 parent aefa423 commit f644c95

14 files changed

Lines changed: 45 additions & 104 deletions

.eslintrc.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
"browser": true,
44
"es2021": true
55
},
6-
"extends": [
7-
"eslint:recommended",
8-
"plugin:@typescript-eslint/recommended"
9-
],
6+
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
107
"parser": "@typescript-eslint/parser",
118
"parserOptions": {
129
"ecmaFeatures": {

.github/workflows/greetings.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ jobs:
66
greeting:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/first-interaction@v1
10-
continue-on-error: true
11-
with:
12-
repo-token: ${{ secrets.GITHUB_TOKEN }}
13-
issue-message: "Thank you for collaborating with the project by giving us feedback!"
14-
pr-message: "Thank you for collaborating with the project to help us improve! We hope this CLI is useful to you. Cheers!"
9+
- uses: actions/first-interaction@v1
10+
continue-on-error: true
11+
with:
12+
repo-token: ${{ secrets.GITHUB_TOKEN }}
13+
issue-message: "Thank you for collaborating with the project by giving us feedback!"
14+
pr-message: "Thank you for collaborating with the project to help us improve! We hope this CLI is useful to you. Cheers!"

.github/workflows/npm-pr-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ jobs:
1717
with:
1818
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1919
message: "This pull request hasn't been labeled as `release` nor `documentation`. Please ensure this is intentional before merging."
20-
comment_tag: label-warn
20+
comment_tag: label-warn

.github/workflows/npm-pr.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ name: NodeJS CI with NPM (PR)
22

33
on:
44
pull_request:
5-
types: [ opened, synchronize, ready_for_review, review_requested, labeled ]
5+
types: [opened, synchronize, ready_for_review, review_requested, labeled]
66

77
concurrency: pr-${{ github.event.pull_request.id }}
88

9-
jobs:
9+
jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212
steps:
@@ -15,6 +15,7 @@ jobs:
1515
with:
1616
node-version: 16
1717
- run: npm ci
18+
- run: npm run lint
1819

1920
check-labels:
2021
runs-on: ubuntu-latest

.github/workflows/npm-push.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
outputs:
1313
labels: ${{ steps.get-pr.outputs.pr_labels }}
1414
steps:
15-
- name: Get Pull Request information
16-
uses: 8BitJonny/gh-get-current-pr@2.2.0
17-
id: get-pr
15+
- name: Get Pull Request information
16+
uses: 8BitJonny/gh-get-current-pr@2.2.0
17+
id: get-pr
1818

1919
build:
2020
runs-on: ubuntu-latest
@@ -26,7 +26,7 @@ jobs:
2626
with:
2727
node-version: 16
2828
- run: npm ci
29-
29+
3030
publish-npm:
3131
runs-on: ubuntu-latest
3232
needs: [build, check-pr-labels]
@@ -40,4 +40,4 @@ jobs:
4040
- run: npm ci
4141
- run: npm publish
4242
env:
43-
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
43+
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}

.github/workflows/update-wiki.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
outputs:
1313
labels: ${{ steps.get-pr.outputs.pr_labels }}
1414
steps:
15-
- name: Get Pull Request information
16-
uses: 8BitJonny/gh-get-current-pr@2.2.0
17-
id: get-pr
15+
- name: Get Pull Request information
16+
uses: 8BitJonny/gh-get-current-pr@2.2.0
17+
id: get-pr
1818

1919
update-wiki:
2020
runs-on: ubuntu-latest
@@ -55,4 +55,4 @@ jobs:
5555
git add .
5656
git commit -m "openapi-nodejs-cli documentation | GitHub Actions $GITHUB_WORKFLOW $GITHUB_RUN_NUMBER"
5757
git remote add origin-wiki "https://${{secrets.GITBOT_TOKEN}}@github.com/sngular/openapi-nodejs-cli.wiki.git"
58-
git push origin-wiki main
58+
git push origin-wiki main

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ output
44
outputTest
55
input
66
coverage
7+
dist

.gitlab-ci.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.prettierignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
node_modules
2+
build
23
output
3-
templates
4+
outputTest
5+
input
6+
coverage
7+
templates
8+
dist

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![License: MPL 2.0](https://img.shields.io/badge/License-MPL%202.0-brightgreen.svg)](https://github.com/sngular/openapi-nodejs-cli/blob/main/LICENSE)
44
[![npm version](https://badge.fury.io/js/@sngular%2Fopenapi-nodejs-cli.svg)](https://www.npmjs.com/package/@sngular%2Fopenapi-nodejs-cli)
5-
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/13bcbcc9cd144302be8c94999566774f)](https://www.codacy.com/gh/sngular/openapi-nodejs-cli/dashboard?utm_source=github.com&utm_medium=referral&utm_content=sngular/openapi-nodejs-cli&utm_campaign=Badge_Grade)
5+
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/13bcbcc9cd144302be8c94999566774f)](https://www.codacy.com/gh/sngular/openapi-nodejs-cli/dashboard?utm_source=github.com&utm_medium=referral&utm_content=sngular/openapi-nodejs-cli&utm_campaign=Badge_Grade)
66

77
<p align="center">
88
<a href="#-summary">Summary</a> ·

0 commit comments

Comments
 (0)