Skip to content

Commit

Permalink
Merge pull request #16 from curveball/release-0.8.1
Browse files Browse the repository at this point in the history
0.8.1 relase prep
  • Loading branch information
evert authored May 18, 2021
2 parents eb316ae + a9ef065 commit 0ac824d
Show file tree
Hide file tree
Showing 9 changed files with 4,882 additions and 601 deletions.
23 changes: 21 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
"SwitchCase": 1
}],
"linebreak-style": ["error", "unix"],
"no-constant-condition": ["error", {
"checkLoops": false
}],
"quotes": ["error", "single",
{
"allowTemplateLiterals": false,
Expand All @@ -35,14 +38,30 @@
"semi": ["error", "always"],
"no-trailing-spaces": "error",
"eol-last": "error",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/ban-ts-comment": ["error",
{
"ts-expect-error": "allow-with-description"
}
],
"@typescript-eslint/ban-tslint-comment": "error",
"@typescript-eslint/consistent-type-assertions": ["error", {
"assertionStyle": "as",
"objectLiteralTypeAssertions": "never"
}],
"@typescript-eslint/member-delimiter-style": "error",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-explicit-any" : 0,
"@typescript-eslint/no-unused-vars": ["error"],
"@typescript-eslint/no-for-in-array": "error",
"@typescript-eslint/no-invalid-void-type": "error",
"@typescript-eslint/no-namespace": "error",
"@typescript-eslint/no-non-null-asserted-optional-chain": "error",
"@typescript-eslint/no-unused-vars": ["error", {
"ignoreRestSiblings": true,
"args": "none"
}],
"@typescript-eslint/prefer-for-of": ["error"],
"@typescript-eslint/prefer-optional-chain": ["error"],
"@typescript-eslint/prefer-ts-expect-error": ["error"],
"no-console": ["error"]
}
}
File renamed without changes.
51 changes: 51 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: Publish NPM package

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
- run: npm ci
- run: npm test

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

publish-gpr:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
- run: npm ci
- uses: actions/setup-node@v2
with:
node-version: 12
registry-url: 'https://npm.pkg.github.com'
scope: '@curveball'
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
30 changes: 30 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm test
6 changes: 0 additions & 6 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Changelog
=========

0.7.1 (2021-04-28)
0.8.1 (2021-05-18)
------------------

* Add an option to *not* automatically add a HTTP Link header.
Expand Down
Loading

0 comments on commit 0ac824d

Please sign in to comment.