Skip to content

Commit 9d894da

Browse files
author
Chris Wiechmann
committed
Add CI-Workflows and changed package scope to
@Axway-API-Builder-Ext
1 parent 9e390ef commit 9d894da

File tree

3 files changed

+75
-2
lines changed

3 files changed

+75
-2
lines changed
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: PDF Flow-Node
2+
3+
on:
4+
push:
5+
paths:
6+
- 'api-builder-plugin-fn-pdf/**'
7+
pull_request:
8+
paths:
9+
- 'api-builder-plugin-fn-pdf/**'
10+
release:
11+
types:
12+
- published
13+
14+
defaults:
15+
run:
16+
working-directory: api-builder-plugin-fn-pdf
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
strategy:
22+
matrix:
23+
node-version: [10.x, 12.x, 14.x]
24+
steps:
25+
- uses: actions/checkout@v1
26+
- name: Use Node.js ${{ matrix.node-version }}
27+
uses: actions/setup-node@v1
28+
with:
29+
node-version: ${{ matrix.node-version }}
30+
- name: npm install, build, and test
31+
run: |
32+
npm ci
33+
npm run build --if-present
34+
npm test
35+
36+
publish-gpr:
37+
if: contains(github.event.release.tag_name, 'plugin-fn-pdf')
38+
env:
39+
CI: true
40+
needs: build
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v1
44+
- uses: actions/setup-node@v1
45+
with:
46+
node-version: 12
47+
registry-url: https://npm.pkg.github.com/
48+
scope: '@Axway-API-Builder-Ext'
49+
- name: Publish to GitHub package repo
50+
env:
51+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
52+
run: |
53+
npm ci
54+
npm publish
55+
56+
publish-npm:
57+
env:
58+
CI: true
59+
needs: [build, publish-gpr]
60+
runs-on: ubuntu-latest
61+
steps:
62+
- uses: actions/checkout@v1
63+
- uses: actions/setup-node@v1
64+
with:
65+
node-version: 12
66+
registry-url: https://registry.npmjs.org/
67+
- name: Publish to NPM package repo
68+
env:
69+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
70+
run: |
71+
npm ci
72+
echo "//registry.npmjs.org/:_authToken=${{ secrets.npm_token }}" > ~/.npmrc
73+
npm publish --access public

api-builder-plugin-fn-pdf/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ PDF flow-node for [API Builder](https://docs.axway.com/bundle/api-builder/page/d
77
Install within an API Builder project using:
88

99
```bash
10-
npm install @axway/api-builder-plugin-fn-pdf
10+
npm install @axway-api-builder-ext/api-builder-plugin-fn-pdf
1111
```
1212

1313
## Methods

api-builder-plugin-fn-pdf/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@axway/api-builder-plugin-fn-pdf",
2+
"name": "@axway-api-builder-ext/api-builder-plugin-fn-pdf",
33
"version": "1.0.0",
44
"description": "API Builder plugin for PDF",
55
"author": "",

0 commit comments

Comments
 (0)