@hedia/types 2.1.50-alpha.0 → 2.1.51-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,87 @@
1
+ name: CI
2
+
3
+ on:
4
+ pull_request:
5
+ branches:
6
+ - master
7
+ types: [opened, reopened, synchronize]
8
+
9
+ env:
10
+ NPM_TOKEN: ${{ secrets.HEDIA_BOT_NPM_TOKEN }}
11
+
12
+ jobs:
13
+ ## Defines if following CI steps should be skipped due to autobump commit
14
+ should-skip:
15
+ runs-on: ubuntu-latest
16
+ outputs:
17
+ skip: ${{ steps.ci-skip.outputs.ci-skip }}
18
+
19
+ steps:
20
+ - uses: actions/checkout@v2
21
+ with:
22
+ fetch-depth: "1000"
23
+
24
+ - name: Should skip CI
25
+ id: ci-skip
26
+ uses: mstachniuk/ci-skip@v1
27
+ with:
28
+ commit-filter: "autobump"
29
+
30
+ ## PR labels validation
31
+ validate-pr-labels:
32
+ needs: [should-skip]
33
+ runs-on: ubuntu-latest
34
+ if: ${{ needs.should-skip.outputs.skip == 'false' }}
35
+
36
+ steps:
37
+ - name: Validate PR labels
38
+ uses: docker://agilepathway/pull-request-label-checker:latest
39
+ with:
40
+ one_of: major,minor,patch
41
+ repo_token: ${{ secrets.HEDIA_BOT_GITHUB_PAT }}
42
+
43
+ ## Running tests & linting scripts
44
+ run-scripts:
45
+ needs: [validate-pr-labels]
46
+ runs-on: ubuntu-latest
47
+ if: ${{ needs.should-skip.outputs.skip == 'false' }}
48
+
49
+ steps:
50
+ - uses: actions/checkout@v2
51
+
52
+ - name: Setup Node.js
53
+ uses: actions/setup-node@v2
54
+ with:
55
+ node-version: "14.15"
56
+
57
+ - name: Register NPM access token
58
+ run: npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
59
+ env:
60
+ NPM_TOKEN: ${{ env.NPM_TOKEN }}
61
+
62
+ - run: npm ci --ignore-scripts
63
+ - run: npm run pkg-json-lint
64
+ - run: npm run prettier
65
+ - run: npm run lint
66
+ - run: npm run tsc
67
+
68
+ ## Bump version (if needed) & publish alpha package
69
+ version-bump-publish-alpha:
70
+ needs: [run-scripts]
71
+ runs-on: ubuntu-latest
72
+ if: ${{ needs.should-skip.outputs.skip == 'false' }}
73
+
74
+ steps:
75
+ - uses: actions/checkout@v2
76
+ with:
77
+ ref: ${{ github.event.pull_request.head.ref }}
78
+ token: ${{ secrets.HEDIA_BOT_GITHUB_PAT }}
79
+
80
+ - name: Autobump & Publish
81
+ uses: hedia-team/autobump-and-publish@master
82
+ with:
83
+ github-token: ${{ secrets.HEDIA_BOT_GITHUB_PAT }}
84
+ npm-token: ${{ env.NPM_TOKEN }}
85
+ git-name: "hedia-bot"
86
+ label: ${{ toJson(github.event.pull_request.labels.*.name) }} ## Defines type of version bump
87
+ issue-number: ${{ github.event.number }} ## So that publish comment can be written on PR
@@ -1,4 +1,4 @@
1
- name: On post-merge - Publish package
1
+ name: Release package
2
2
 
3
3
  on:
4
4
  pull_request:
@@ -10,26 +10,24 @@ env:
10
10
  NPM_TOKEN: ${{ secrets.HEDIA_BOT_NPM_TOKEN }}
11
11
 
12
12
  jobs:
13
- on-post-merge-publish-package:
13
+ release-package:
14
14
  if: github.event.pull_request.merged == true
15
15
 
16
16
  runs-on: ubuntu-latest
17
17
 
18
- strategy:
19
- matrix:
20
- node-version: [14.15]
21
-
22
18
  steps:
23
19
  - uses: actions/checkout@v2
24
- - uses: actions/setup-node@v2
20
+
21
+ - name: Setup Node.js
22
+ uses: actions/setup-node@v2
25
23
  with:
26
- node-version: ${{ matrix.node-version }}
24
+ node-version: "14.15"
27
25
 
28
26
  - name: Publish
29
27
  uses: hedia-team/autobump-and-publish@master
30
28
  with:
29
+ github-token: ${{ secrets.HEDIA_BOT_GITHUB_PAT }}
31
30
  npm-token: ${{ env.NPM_TOKEN }}
31
+ git-name: "hedia-bot"
32
32
  issue-number: ${{ github.event.number }}
33
- github-token: ${{ secrets.GITHUB_TOKEN }}
34
33
  is-post-merge: true
35
- run-script: npm ci && npm run tsc
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedia/types",
3
- "version": "2.1.50-alpha.0",
3
+ "version": "2.1.51-alpha.0",
4
4
  "description": "Enums, interfaces, and other common types for use in Hedia's software.",
5
5
  "main": "dist/index.js",
6
6
  "repository": {
@@ -12,6 +12,7 @@
12
12
  "lint": "tslint --project .",
13
13
  "pkg-json-lint": "npmPkgJsonLint .",
14
14
  "postpublish": "npm run clean",
15
+ "prepublishOnly": "npm ci && npm run tsc",
15
16
  "prettier": "prettier --check \"types/**/*.{ts,tsx}\"",
16
17
  "tsc": "tsc --build"
17
18
  },
@@ -1,49 +0,0 @@
1
- name: Version Bump & Publish Alpha
2
-
3
- on:
4
- pull_request:
5
- branches:
6
- - master
7
- types: [opened, reopened, synchronize]
8
-
9
- env:
10
- NPM_TOKEN: ${{ secrets.HEDIA_BOT_NPM_TOKEN }}
11
-
12
- jobs:
13
- validate-pr-labels:
14
- runs-on: ubuntu-latest
15
-
16
- steps:
17
- - name: Validate PR labels
18
- uses: docker://agilepathway/pull-request-label-checker:v1.0.102
19
- with:
20
- one_of: major,minor,patch
21
- repo_token: ${{ secrets.GITHUB_TOKEN }}
22
-
23
- version-bump-publish-alpha:
24
- needs: [validate-pr-labels]
25
- runs-on: ubuntu-latest
26
-
27
- strategy:
28
- matrix:
29
- node-version: [14.15]
30
-
31
- steps:
32
- - uses: actions/checkout@v2
33
- with:
34
- ref: ${{ github.event.pull_request.head.ref }}
35
- token: ${{ secrets.HEDIA_BOT_GITHUB_PAT }}
36
-
37
- - uses: mstachniuk/ci-skip@v1
38
- with:
39
- commit-filter: "autobump"
40
-
41
- - name: Autobump & Publish
42
- if: ${{ env.CI_SKIP == 'false' }}
43
- uses: hedia-team/autobump-and-publish@master
44
- with:
45
- github-token: ${{ secrets.GITHUB_TOKEN }}
46
- label: ${{ toJson(github.event.pull_request.labels.*.name) }}
47
- npm-token: ${{ env.NPM_TOKEN }}
48
- issue-number: ${{ github.event.number }}
49
- run-script: npm ci && npm run tsc