Skip to content

Commit 46c259f

Browse files
committed
Merge branch 'beta'
2 parents 0b1a08d + 16073eb commit 46c259f

File tree

4 files changed

+3870
-583
lines changed

4 files changed

+3870
-583
lines changed

.github/workflows/CI-CD.yaml

Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions
33
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions
44
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/contexts-and-expression-syntax-for-github-actions
5+
# https://www.npmjs.com/package/@amanda-mitchell/semantic-release-npm-multiple
56

67
name: CI-CD
78

@@ -114,38 +115,29 @@ jobs:
114115
github-token: ${{ secrets.GITHUB_TOKEN }}
115116
parallel-finished: true
116117

117-
deploy:
118-
name: Publish to NPM
119-
if: github.ref == 'refs/heads/master'
118+
release:
119+
name: Release
120+
# removed to test beta branch.
121+
# if: github.ref == 'refs/heads/master'
120122
runs-on: ubuntu-latest
121123
timeout-minutes: 10
122124
needs:
123125
- node_tests
124126
- browser_tests
125-
126127
steps:
127-
- name: Checkout source
128-
uses: actions/checkout@v2
129-
130-
- name: Install Node
131-
uses: actions/setup-node@v1
128+
- uses: actions/checkout@v2
129+
- uses: actions/setup-node@v1
130+
with:
131+
node-version: 12
132132

133133
- name: Install dependencies
134134
run: npm ci
135135

136-
- name: Publish to NPM
137-
uses: JS-DevTools/npm-publish@v1
138-
with:
139-
token: ${{ secrets.NPM_TOKEN }}
140-
141-
- name: Prepare the non-scoped packaged
142-
run: |
143-
cp LICENSE *.md dist
144-
VERSION=$(node -e "console.log(require('./package.json').version)")
145-
sed -i "s/X.X.X/${VERSION}/g" dist/package.json
136+
- name: Prepare Unscoped Package
137+
run: npm run build --if-present
146138

147-
- name: Publish the non-scoped package to NPM
148-
uses: JS-DevTools/npm-publish@v1
149-
with:
150-
token: ${{ secrets.NPM_TOKEN }}
151-
package: dist/package.json
139+
- name: Publish to NPM
140+
run: npx semantic-release
141+
env:
142+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
143+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ JSON Schema $Ref Parser is a full [JSON Reference](https://tools.ietf.org/html/d
5252
- Can [dereference](https://apitools.dev/json-schema-ref-parser/docs/ref-parser.html#dereferencepath-options-callback) your schema, producing a plain-old JavaScript object that's easy to work with
5353
- Supports [circular references](https://apitools.dev/json-schema-ref-parser/docs/#circular-refs), nested references, back-references, and cross-references between files
5454
- Maintains object reference equality — `$ref` pointers to the same value always resolve to the same object instance
55-
- Tested in Node and all major web browsers on Windows, Mac, and Linux
55+
- Tested in Node v10, v12, & v14, and all major web browsers on Windows, Mac, and Linux
5656

5757

5858
Example

0 commit comments

Comments
 (0)